7
$\begingroup$

I have a 3d vector r known by its coordinates rx, ry, rz. How can calculate angles Theta and Phi ?

enter image description here

$\endgroup$
2
  • 3
    $\begingroup$ $\varphi = \arctan(y/x)$ and $\theta = \arccos(z/r)$. $\endgroup$ Apr 22, 2017 at 20:05
  • $\begingroup$ Thanks ! I have a cube at pos (0,0,0) whose x-axis I want to orient in the same direction than r, by what coordinates should I rotate the cube (maya software) ? (0,φ,θ) ? $\endgroup$ Apr 22, 2017 at 20:17

0

You must log in to answer this question.

Browse other questions tagged .