Every vector can be decomposed into the sum of a part parallel to a given direction and a part perpendicular to it. It is the mechanism underlying the computation of the point–line distance.
Property — Parallel and perpendicular component
The distance of from the direction of is .
Example
Let us decompose with respect to the unit vector (unit vector of ).
Scalar projection: Hence and ; the length is the distance from the point to the line with direction .
Using the unit vector directly (of modulus ) the formula simplifies to .
Links
Topics: Analytic geometry in space
Concepts: Parallel component · Scalar product · Vector
Skills: Analytic geometry · Using formulae