RhinoCommon API
CurveClosestPoint 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)
Since: 5.0

public bool ClosestPoint( Point3d testPoint, out double t )
Public Function ClosestPoint ( testPoint As Point3d, <OutAttribute> ByRef t As Double ) As Boolean
Parameters
- testPoint
- Type: Rhino.GeometryPoint3d
Point to search from. - t
- Type: SystemDouble
Parameter of local closest point.
Return Value
Type: Booleantrue on success, false on failure.
