C# 클래스 TrolleyTracker.Controllers.Coordinate

파일 보기 프로젝트 열기: codeforgreenville/trolley-tracker-api-dot-net

공개 메소드들

메소드 설명
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

메소드 상세

Coordinate() 공개 메소드

public Coordinate ( double lat, double lon ) : System
lat double
lon double
리턴 System

Coordinate() 공개 메소드

public Coordinate ( string lat, string lon ) : System
lat string
lon string
리턴 System

DegreeToRadians() 공개 메소드

public DegreeToRadians ( double degrees ) : double
degrees double
리턴 double

GreatCircleDistance() 공개 메소드

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
리턴 double

RadianToDegree() 공개 메소드

public RadianToDegree ( double angle ) : double
angle double
리턴 double