# Angles in 3d

Hi guys,

Wondering if you could help me on this one. If you have a vector in xyz, and you know the angles that the vector is inclined at to two of the axis, how do you find the 3rd one.

eg, line inclined at 60˚ to the x axis and 45˚ to the y axis, how do you find the inclination to the z axis (which is 60˚ or 120˚ by the way) I know it has something to do with direction ratios and direction cosines, but don't know how to get there. I also know that direction cosines add up to 1, but I can't find a connection.

Rob

HallsofIvy
Homework Helper
Use "direction cosines". If $\theta$, $\phi$, and $\psi$ are the angles a direction makes with the x, y, and z axes respectively, then $cos(\theta)\vec{i}+ cos(\phi)\vec{j}+ cos(\psi)\vec{k}$ is the unit vector in that direction.

That means that if you are given a vector, v, you can find the angles it makes with the axes by reducing it to a unit vector- divide by its length- and look at the components.

In your example, you know that a unit vector in your direction is $<cos(60), cos(45), cos(\psi)>= < 0.5, 0.707, cos(\psi)>$ so you must have $.25+ 0.5+ cos^2(\psi) = 1$. You can solve that for $\psi$.

Yes of course, that is so simple when it is explained. Thank you very much Hallsofivy.

Happy new year.

Rob K