Extra functionality for QuadraticSpline2d
values.
nearestPoint : QuadraticSpline2d units coordinates -> Point2d units coordinates -> Basics.Float
Find the parameter value on a spline that is closest to a given point. You can combine this with
pointOn
to find the nearest point on the spline.
QuadraticSpline2d.nearestPoint spline p0
|> QuadraticSpline2d.pointOn spline