line.closestPoint(point)

Return the point on the line that lies closest to point.