Returns the closest point on a line to a given point
start point of line
end point of line
the point
The closest point on the line
Returns the closest point on a line to a given point