Let's imagine a point in 3D coordinate such that its distance to the origin is $1 \text{ unit}$.
The coordinates of that point have been given as $x = a$, $y = b$, and $z = c$.
How can we calculate the angles made by the vector with each of the axes?

The vector point coordinates are $OP=(a,b,c)$ then the angles with $x,y,z$ with unitary vectors $e_1=(1,0,0),e_2=(0,1,0),e_3(0,0,1)$ are given by the dot product