Find the point on the curve closest to the point