Find closest point on a path