C# Класс BikeInCity.Utils.GeoMath

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ComputeDistance ( double startLat, double startLng, double endLat, double endLng ) : int

Returns distsance in meters between two points of earth using the Spherical Law of Cosines

Harvesine ( double lat1, double lng1, double lat2, double lng2 ) : int
Pythagoras ( double lat1, double lng1, double lat2, double lng2 ) : int
SphericalEarthProjectedToAPlane ( double lat1, double lng1, double lat2, double lng2 ) : int
ToRad ( double angle ) : double

Converts degrees to radians. Used to convert the latitude and longitude coordinates.

Описание методов

ComputeDistance() публичный статический Метод

Returns distsance in meters between two points of earth using the Spherical Law of Cosines
public static ComputeDistance ( double startLat, double startLng, double endLat, double endLng ) : int
startLat double
startLng double
endLat double
endLng double
Результат int

Harvesine() публичный статический Метод

public static Harvesine ( double lat1, double lng1, double lat2, double lng2 ) : int
lat1 double
lng1 double
lat2 double
lng2 double
Результат int

Pythagoras() публичный статический Метод

public static Pythagoras ( double lat1, double lng1, double lat2, double lng2 ) : int
lat1 double
lng1 double
lat2 double
lng2 double
Результат int

SphericalEarthProjectedToAPlane() публичный статический Метод

public static SphericalEarthProjectedToAPlane ( double lat1, double lng1, double lat2, double lng2 ) : int
lat1 double
lng1 double
lat2 double
lng2 double
Результат int

ToRad() публичный статический Метод

Converts degrees to radians. Used to convert the latitude and longitude coordinates.
public static ToRad ( double angle ) : double
angle double
Результат double