C# 클래스 AbstractedSheep.ShuttleTrackerWorld.Coordinate

Represents an immutable Latitude, Longitude pair on Earth.
파일 보기 프로젝트 열기: AbstractedSheep/Shuttle-Tracker

공개 메소드들

메소드 설명
BearingTowards ( Coordinate c ) : double

Calculates the bearing towards another Coordinate.

ClosestPoint ( Coordinate endpoint1, Coordinate endpoint2 ) : Coordinate

Calculates the closest Coordinate to a line created by two other Coordinates. The resulting Coordinate is not garunteed to fall between the two endpoint Coordinates.

Coordinate ( int latitudeE6, int longitudeE6 ) : System
DistanceTo ( Coordinate c ) : double

Calculates the distance in miles to another Coordinate

Equals ( object obj ) : bool
GetHashCode ( ) : int
ToString ( ) : string
operator ( ) : bool

비공개 메소드들

메소드 설명
DegToRad ( double degrees ) : double
RadToDeg ( double rad ) : double

메소드 상세

BearingTowards() 공개 메소드

Calculates the bearing towards another Coordinate.
public BearingTowards ( Coordinate c ) : double
c Coordinate The Coordinate to get the bearing towards.
리턴 double

ClosestPoint() 공개 메소드

Calculates the closest Coordinate to a line created by two other Coordinates. The resulting Coordinate is not garunteed to fall between the two endpoint Coordinates.
public ClosestPoint ( Coordinate endpoint1, Coordinate endpoint2 ) : Coordinate
endpoint1 Coordinate A Coordinate on the line.
endpoint2 Coordinate Another Coordinate on the line.
리턴 Coordinate

Coordinate() 공개 메소드

public Coordinate ( int latitudeE6, int longitudeE6 ) : System
latitudeE6 int
longitudeE6 int
리턴 System

DistanceTo() 공개 메소드

Calculates the distance in miles to another Coordinate
public DistanceTo ( Coordinate c ) : double
c Coordinate The Coordinate to measure the distance to.
리턴 double

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool