Example
Point to Polygon
geometric.pointToPolygon(polygon, point) returns the closest position on the perimeter of a polygon to a point.
Drag the blue point to see the closest point move around the polygon.
Closest point
[260.0, 200.0]
Distance
91.3px
Code