Table of Contents

Class GeoUtils

Namespace
Cryville.EEW
Assembly
Cryville.EEW.dll
Provides static utility methods related to geography.
public static class GeoUtils
Inheritance
GeoUtils
Inherited Members

Methods

GreatCircleDistance(double, double, double, double)

Gets the great circle distance between two locations.
public static double GreatCircleDistance(double lat1, double lon1, double lat2, double lon2)

Parameters

lat1 double
The latitude of the first location.
lon1 double
The longitude of the first location.
lat2 double
The latitude of the second location.
lon2 double
The longitude of the second location.

Returns

double
The great circle distance between the two locations in radians.