The vector is
.
Rewrite the vector 
The magnitude of the vector u is
\
If
and
are the angle between the vector u and unit vectors i, j and k, then
and
.
and
are the direction cosines of the vector u.



The direction angles are
,
and
.
The direction angles are
,
and
.