Finding the shortest distance of a point to a line requires the use of the scalar product as this video demonstrates.