For a vector in 3 space P = (Px,Py,Pz) the direction cosines are defined as
These are the cosines of the angles to each axis.