Vanishing point as the "direction point", as lines having the same directional vector, say "D", will have the same vanishing point. Mathematically, let be a point lying on the image plane, where is the focal length (of the camera associated with the image), and let be the unit vector associated with , where . If we consider a straight line in space with the unit vector and its vanishing point , the unit vector associated with is equal to , assuming both are assumed to point towards the image plane. When the image plane is parallel to two world-coordinate axes, lines parallel
Distance from a point to a line length of this projection is given by: Now, thus Since "Q" is a point on the line, formula_27, and so, It is possible to produce another expression to find the shortest distance of a point to a line. This derivation also requires that the line is not vertical or horizontal. The point P is given with coordinates (formula_29). The equation of a line is given by formula_30. The equation of the normal of that line which passes through the point P is given formula_31. The point at which these two lines intersect is the closest point on the original line