Hello folks,
Ok, I searched for that through google and found cartesian/spherical coordinates conversion forth and back. For example,
Cartesian to spherical conversion
rho = sqrt(x^2 + y^2 + z^2)
theta = atan2(y, x)
phi = atan2(z, sqrt(x^2 + y^2))
Spherical to cartesian conversion
x =...