C# Class TrolleyTracker.Controllers.Coordinate

Datei anzeigen Open project: codeforgreenville/trolley-tracker-api-dot-net

Public Methods

Method Description
Coordinate ( double lat, double lon ) : System
Coordinate ( string lat, string lon ) : System
DegreeToRadians ( double degrees ) : double
GreatCircleDistance ( Coordinate other ) : double

Computes the distance between this coordinate and another point on the earth. Uses spherical law of cosines formula, not Haversine.

RadianToDegree ( double angle ) : double

Method Details

Coordinate() public method

public Coordinate ( double lat, double lon ) : System
lat double
lon double
return System

Coordinate() public method

public Coordinate ( string lat, string lon ) : System
lat string
lon string
return System

DegreeToRadians() public method

public DegreeToRadians ( double degrees ) : double
degrees double
return double

GreatCircleDistance() public method

Computes the distance between this coordinate and another point on the earth. Uses spherical law of cosines formula, not Haversine.
public GreatCircleDistance ( Coordinate other ) : double
other Coordinate The other point
return double

RadianToDegree() public method

public RadianToDegree ( double angle ) : double
angle double
return double