RhinoNurbsCurve.closest_point
- RhinoNurbsCurve.closest_point(point, return_parameter=False)[source]
Compute the closest point on the curve to a given point.
- Parameters
point (
compas.geometry.Point
) – The point to project orthogonally to the curve.return_parameter (bool, optional) – Return the curve parameter in addition to the projected point.
- Returns
compas.geometry.Point
or tuple ofcompas.geometry.Point
and float – The nearest point on the curve, ifparameter
is false. The nearest as (point, parameter) tuple, ifparameter
is true.