closest#

PointData.closest(start, end)#

Get the closest point on a line segment from the point.

Parameters:
startPoint2DLike

Start point of the line segment.

endPoint2DLike

End point of the line segment.

Returns:
PointData or None

Closet PointData or None if either point is an arc.