Curve.closest_point
- Curve.closest_point(point, return_parameter=False)[source]
Compute the closest point on the curve to a given point.
- Parameters
point (
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
Point
| tuple[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.