C# Класс AbstractedSheep.ShuttleTrackerWorld.Coordinate

Represents an immutable Latitude, Longitude pair on Earth.
Показать файл Открыть проект

Открытые методы

Метод Описание
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