M_Rhino_Geometry_Line_DistanceTo - mcneel/rhinocommon-api-docs GitHub Wiki
Compute the shortest distance between this line segment and a test point.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public double DistanceTo(
Point3d testPoint,
bool limitToFiniteSegment
)VB
Public Function DistanceTo (
testPoint As Point3d,
limitToFiniteSegment As Boolean
) As Double
- testPoint
- Type: Rhino.Geometry.Point3d
Point for distance computation. - limitToFiniteSegment
- Type: System.Boolean
If true, the distance is limited to the finite line segment.
Type: Double
The shortest distance between this line segment and testPoint.
Supported in: 6.0.16224.21491, 5D58w