This note describes the technique and gives the solution to finding the shortest distance from a point to a line or line segment. The equation of a line defined through two points P1 (x1,y1) and P2 (x2,y2) is P = P1 + u (P2 - P1) The point P3 (x3,y3) is closest to the line at the [...]
Continue reading...
Wednesday, March 11, 2009
0 Comments