M_Rhino_Geometry_Curve_ClosestPoint_1 - mcneel/rhinocommon-api-docs GitHub Wiki
Finds the 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
C#
public bool ClosestPoint(
Point3d testPoint,
out double t,
double maximumDistance
)
VB
Public Function ClosestPoint (
testPoint As Point3d,
<OutAttribute> ByRef t As Double,
maximumDistance As Double
) As Boolean
- testPoint
- Type: Rhino.Geometry.Point3d
Point to project. - t
- Type: System.Double
parameter of local closest point returned here. - maximumDistance
- Type: System.Double
The maximum allowed distance. Past this distance, the search is given up and false is returned.Use 0 to turn off this parameter.
Type: Boolean
true on success, false on failure.
Supported in: 6.0.16224.21491, 5D58w