Since were given the center of the sphere in the question we can plug it into the equation of the sphere immediately. Var distance olsphereWGS84haversineDistance001800. The shortest distance between two points is the length of a so-called geodesic between the points.
Another similar way to measure distances is by using the Haversine formula which takes the equation a h a v D f c o s f 1 c o s f 2 h a v D l.
First we need a way to calculate the angle between the two points from. That means when applies this to calculate distance of. For example there is the Great-circle distance which is the shortest distance between two points on the surface of a sphere. SHORTEST DISTANCE BETWEEN TWO POINTS ON A SPHERE It is known that the shortest distance between point A and point B on the surface of a sphere of radius R is part of a great circle lying in a plane intersecting the sphere surface and containing the points A and B and the point C at the sphere center.