closest_point#

PolygonData.closest_point(point)#

Compute a point on the polygon that is closest to another point.

Parameters:
pointPoint2DLike

Other point.

Returns:
PointData

Point closest to the given point.