MathUtility.GreatCircleDistance method

Calculates the shortest distance between to points on a the surface of a sphere.

public static double GreatCircleDistance(double fRadius, double fLatitudeOne, double fLongitudeOne, 
    double fLatitudeTwo, double fLongitudeTwo)
parameter description
fRadius Radius of the sphere.
fLatitudeOne Latitude of the first point in degrees.
fLongitudeOne Longitude of the first point in degrees.
fLatitudeTwo Latitude of the second point in degrees.
fLongitudeTwo Longitude of the second poin in degrees.

Return Value

The shortest distance between the two points.

See Also