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 of compas.geometry.Point and float – The nearest point on the curve, if parameter is false. The nearest as (point, parameter) tuple, if parameter is true.