$x = \rho\sin\phi\cos\theta$
$y = \rho\sin\phi\sin\theta$
$z = \rho\cos\phi$

click text to drag