project
Projects a query point onto the path using Newton's method.
Performs up to 10 iterations of Newton's method to find the parameter value where the path is closest to the query point.
Return
The parameter value at the closest point on the path to the query
Parameters
query
The 2D point to project onto the path
init
Initial guess for the parameter value (default: 0.0)