The direction angles of a non-zero vector \(\vecu\) are the angles that it makes with the three coordinate axes, typically called \(\alpha\text{,}\) \(\beta\) and \(\gamma\text{.}\) That is, the angles that the vector makes with the three standard basic vectors \(\veci\text{,}\) \(\vecj\) and \(\hat{k}\text{.}\) The cosines of these are the direction cosines.
\begin{equation*}
\cos \alpha = \frac{\vecu \cdot \veci}{\| \vecu \| \|\veci\ \|}, = \frac{u_1}{\| \vecu \|},
%\text{ (so } \alpha =\arccos\left(\frac{u_1}{|\vecu|}\right) ),
\qquad \cos \beta = \frac{u_2}{\|\vecu\|},
\qquad \cos \gamma = \frac{u_3}{\|\vecu\|}
\end{equation*}
Since the angles are always in \([0, \pi]\text{,}\) they are unambiguously determined by their cosines; thus it is usually enough to know the direction cosines. It can be checked that
\begin{equation*}
\cos^2 \alpha + \cos^2 \beta + \cos^2 \gamma=1, \quad \vecu = \|\vecu\| \vector{\cos \alpha, \cos \beta, \cos \gamma}
\end{equation*}
so the vector \(\hat{u}=\vector{\cos \alpha, \cos \beta, \cos \gamma}\) of direction cosines is the unit vector in the direction of \(\vecu\text{.}\)