Mathematics · Ch 9 — Three-Dimensional Geometry
Direction Cosines and Direction Ratios
Direction Cosines and Direction Ratios
A line in space has a definite length only between two specified points, but it has a direction regardless of length -- and describing that direction precisely, independent of where the line is positioned, is the purpose of direction cosines and direction ratios.
Direction cosines. Let a directed line (or a vector parallel to it) make angles , , with the positive -, - and -axes respectively. The cosines of these three angles, , , , are called the direction cosines of the line, written as the ordered triple . Every line has exactly two associated sets of direction cosines, and , one for each of its two possible directions.
The relation -- derivation. Consider a directed line through the origin, and let be a point on it at distance from . Since is the angle makes with the -axis, the foot of the perpendicular from to the -axis lies at distance from ; similarly and . Substituting into the distance-from-origin formula (Section 3),
(dividing through by ). So the direction cosines of any line always satisfy -- they cannot be chosen freely as three independent numbers, only as a triple lying on the unit sphere.
Direction cosines of the line joining two points. For two points and , the direction cosines of the line (directed from to ) are obtained by dividing each coordinate difference by the distance (Section 3):
This automatically satisfies , since the sum of the squares of the numerators is exactly by the distance formula.
Direction ratios. In practice, a line's direction is very often known only up to scale -- e.g. as coefficients in an equation -- without the corresponding distance being known or needed. Any three numbers proportional to a line's direction cosines, i.e. , , for some nonzero constant , are called the line's direction ratios. Direction ratios are far more convenient to work with than direction cosines, since they can be read directly off two points as , with no need to compute a square root, and any nonzero scalar multiple of a valid set of direction ratios represents the same direction. …