The distance of a point to the line through points and is the length of the component of that is orthogonal to , as indicated in the diagram.
So the distance from to the line through the points and is
.