C# Класс fivenine.UnifiedMaps.Position

A struct that has a latitude and longitude, stored as doubles.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ClampLatitude ( double latitude ) : double

Clamps the latitude to the valid range.

ClampLongitude ( double longitude ) : double

Clamps the longitude to the valid range.

Equals ( object obj ) : bool

Indicates whether this instance and a specified object are equal.

GetHashCode ( ) : int

Returns the hash code for this instance.

Position ( double latitude, double longitude ) : System

Initializes a new instance of the Position struct.

ToString ( ) : string

Returns the fully qualified type name of this instance.

operator ( ) : bool

Implements the operator ==.

Описание методов

ClampLatitude() публичный статический Метод

Clamps the latitude to the valid range.
public static ClampLatitude ( double latitude ) : double
latitude double The latitude.
Результат double

ClampLongitude() публичный статический Метод

Clamps the longitude to the valid range.
public static ClampLongitude ( double longitude ) : double
longitude double The longitude.
Результат double

Equals() публичный Метод

Indicates whether this instance and a specified object are equal.
public Equals ( object obj ) : bool
obj object The object to compare with the current instance.
Результат bool

GetHashCode() публичный Метод

Returns the hash code for this instance.
public GetHashCode ( ) : int
Результат int

Position() публичный Метод

Initializes a new instance of the Position struct.
public Position ( double latitude, double longitude ) : System
latitude double The latitude degrees (y).
longitude double The longitude degrees (x).
Результат System

ToString() публичный Метод

Returns the fully qualified type name of this instance.
public ToString ( ) : string
Результат string

operator() публичный статический Метод

Implements the operator ==.
public static operator ( ) : bool
Результат bool