M_Rhino_Geometry_Curve_ClosestPoint - mcneel/rhinocommon-api-docs GitHub Wiki

Curve.ClosestPoint Method (Point3d, Double)

Finds parameter of the point on a curve that is closest to testPoint. If the maximumDistance parameter is > 0, then only points whose distance to the given point is <= maximumDistance will be returned. Using a positive value of maximumDistance can substantially speed up the search.

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

Syntax

C#

public bool ClosestPoint(
	Point3d testPoint,
	out double t
)

VB

Public Function ClosestPoint ( 
	testPoint As Point3d,
	<OutAttribute> ByRef t As Double
) As Boolean

Parameters

 

testPoint
Type: Rhino.Geometry.Point3d
Point to search from.
t
Type: System.Double
Parameter of local closest point.

Return Value

Type: Boolean
true on success, false on failure.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Curve Class
ClosestPoint Overload
Rhino.Geometry Namespace

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