If a line makes angles 90°, 135°, 45° with the x, y and z-axes respectively, find its direction cosines.
The direction cosines are the cosines of the angles made with the x-, y- and z-axes, respectively.
l = cos 90° = 0, m = cos 135° = −1/√2, n = cos 45° = 1/√2.
Check: l² + m² + n² = 0 + 1/2 + 1/2 = 1.