mathDirection Cosines: Definition Formula and Examples
The direction cosines of a vector are the cosines of the angles α, β, γ it makes with the positive x, y and z axes: l = x/|v|, m = y/|v|, n = z/|v|. They always satisfy l² + m² + n² = 1.
Direction Cosines