Let and . The distance between and , denoted by is:
Reasoning behind the formula
The formula comes from the fact that the (shortest) distance between a point and a line is the length of the segment that goes from the point to the line and is perpendicular to it.
If we think of a vector that goes from to (i.e. ), then we can calculate this shortest distance by dividing the area of the parallelogram (generated by the vector and the line vector, ) by the length of the line vector (), because this shortest distance is the height of such parallelogram.
If is a unit vector
In the case that , the defining vector for , is a unit vector, then the distance between and becomes:
Notice that, if we set , then this coincides with the area of the parallelogram generated by and .