Finds the closest point on this curve to the input point.
The closest point on this curve.
This function is the same as getClosestPointTo().