I\'ve got the following information:
There exists a sphere with origin (0,0,0) and radius R. After doing a ray-sphere intersection I know a point (XYZ) in 3D space t
r=sqrt(x^2+y^2+z^2) phi = arccos(sqrt(x^2+y^2)/r)*sign(y) lambda = arccos(x/sqrt(x^2+y^2)) latitude = 180/pi * phi longitude = 180/pi * lambda
you might have to tinker with the signs a little