Quandaries and Queries



Given a line segment L(x1,y1) to (x2,y2) and a Point P(x3,y3).
I need the formula to find a point on the line L that is closest to the point (x3,y3).

Please help!



Hi Meenakshi,

First write the equation of the line through (x1,y1) and (x2,y2).

The line through (x3,y3) and perpenducular to the above line is

The point you want is the point of intersection of these two lines.



Go to Math Central