NurbsCurve.closest_point
- NurbsCurve.closest_point(point, return_parameter=False)[source]
Compute the closest point on the curve to a given point.
- Parameters
point (
compas.geometry.Point
) – The test point.return_parameter (bool, optional) – If True, the parameter corresponding to the closest point should be returned in addition to the point.
- Returns
compas.geometry.Point
| tuple[compas.geometry.Point
, float] – If return_parameter is False, only the closest point is returned. If return_parameter is True, the closest point and the corresponding parameter are returned.