| "Nearest Point Test" by Akira (2005-02-02) |
This
applet look for the shorted path between point and line. It's obvious, but perpendicular path from line to point is the shortest path. End points are behave differently, since you can't draw perpendicular path. Finding shortest path/distance become very important later for calculating how close two lines are.