I have a sphere and 2 points on it. I know everything about these points to be able to define them in 3 dimensional space with both cartesian coordinate system and polar coordinate system (x, y and z position of the points; angles and radius).
I need to find the shortest distance between this point on the sphere's surface.