nearestPointOnLine