Click or drag to resize

MathUtilGreatCircle Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Calculate the distance (in radians) between 2 latitude/longitude pairs over the surface of a sphere.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public static double GreatCircle(
	double lat1,
	double lon1,
	double lat2,
	double lon2
)

Parameters

lat1
Type: SystemDouble
latitude 1 in radians
lon1
Type: SystemDouble
longitude 1 in radians
lat2
Type: SystemDouble
latitude 2 in radians
lon2
Type: SystemDouble
longitude 2 in radians

Return Value

Type: Double
The distance over the surface of a sphere between the latitude/longitude pairs.
Remarks
A great circle is a circle drawn around the surface of a sphere. Both sphere and circle share the same center, and for any two given points (the latitude/longitude pairs) on the sphere's surface there is a unique great circle. The smallest arc between the two points on the great circle describes the shortest distance between the two points.
See Also