M_Rhino_Geometry_Line_DistanceTo - mcneel/rhinocommon-api-docs GitHub Wiki

Line.DistanceTo Method

Compute the shortest distance between this line segment and a test point.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public double DistanceTo(
	Point3d testPoint,
	bool limitToFiniteSegment
)

VB

Public Function DistanceTo ( 
	testPoint As Point3d,
	limitToFiniteSegment As Boolean
) As Double

Parameters

 

testPoint
Type: Rhino.Geometry.Point3d
Point for distance computation.
limitToFiniteSegment
Type: System.Boolean
If true, the distance is limited to the finite line segment.

Return Value

Type: Double
The shortest distance between this line segment and testPoint.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Line Structure
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️