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.Pointor tuple ofcompas.geometry.Pointand float – The nearest point on the curve, ifparameteris false. The nearest as (point, parameter) tuple, ifparameteris true.