C# Class AbstractedSheep.ShuttleTrackerWorld.Coordinate

Represents an immutable Latitude, Longitude pair on Earth.
Afficher le fichier Open project: AbstractedSheep/Shuttle-Tracker

Méthodes publiques

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

Private Methods

Méthode Description
DegToRad ( double degrees ) : double
RadToDeg ( double rad ) : double

Method Details

BearingTowards() public méthode

Calculates the bearing towards another Coordinate.
public BearingTowards ( Coordinate c ) : double
c Coordinate The Coordinate to get the bearing towards.
Résultat double

ClosestPoint() public méthode

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.
Résultat Coordinate

Coordinate() public méthode

public Coordinate ( int latitudeE6, int longitudeE6 ) : System
latitudeE6 int
longitudeE6 int
Résultat System

DistanceTo() public méthode

Calculates the distance in miles to another Coordinate
public DistanceTo ( Coordinate c ) : double
c Coordinate The Coordinate to measure the distance to.
Résultat double

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

ToString() public méthode

public ToString ( ) : string
Résultat string

operator() public static méthode

public static operator ( ) : bool
Résultat bool