http://demonstrations.wolfram.com/Sho...
The Wolfram Demonstrations Project contains thousands of free interactive visualizations, with new entries added daily.
This Demonstration shows how the scalar product (dot product) can be used to find the point of shortest distance between a point P and a line. You can modify the line by dragging points A and B.
Contributed by: Sergio Hannibal Mejia (Yokohama International School)