closestPointToPointParameter

Returns a point parameter based on the closest point as projected on the line segment.

Return

The point parameter.

Parameters

point

The point for which to return a point parameter.

clampToLine

Whether to clamp the result to the range [0,1] or not.