C# Class BikeInCity.Utils.GeoMath

Afficher le fichier Open project: hoonzis/bikeincity Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

ComputeDistance() public static méthode

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
Résultat int

Harvesine() public static méthode

public static Harvesine ( double lat1, double lng1, double lat2, double lng2 ) : int
lat1 double
lng1 double
lat2 double
lng2 double
Résultat int

Pythagoras() public static méthode

public static Pythagoras ( double lat1, double lng1, double lat2, double lng2 ) : int
lat1 double
lng1 double
lat2 double
lng2 double
Résultat int

SphericalEarthProjectedToAPlane() public static méthode

public static SphericalEarthProjectedToAPlane ( double lat1, double lng1, double lat2, double lng2 ) : int
lat1 double
lng1 double
lat2 double
lng2 double
Résultat int

ToRad() public static méthode

Converts degrees to radians. Used to convert the latitude and longitude coordinates.
public static ToRad ( double angle ) : double
angle double
Résultat double