M_Rhino_Geometry_Line_ClosestPoint - mcneel/rhinocommon-api-docs GitHub Wiki
Finds the point on the (in)finite line segment that is closest to a test point.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public Point3d ClosestPoint(
Point3d testPoint,
bool limitToFiniteSegment
)
VB
Public Function ClosestPoint (
testPoint As Point3d,
limitToFiniteSegment As Boolean
) As Point3d
- testPoint
- Type: Rhino.Geometry.Point3d
Point to project onto the line. - limitToFiniteSegment
- Type: System.Boolean
If true, the projection is limited to the finite line segment.
Type: Point3d
The point on the (in)finite line that is closest to testPoint.
Supported in: 6.0.16224.21491, 5D58w