C# Class fivenine.UnifiedMaps.Position

A struct that has a latitude and longitude, stored as doubles.
Afficher le fichier Open project: fiveninedigital/UnifiedMaps Class Usage Examples

Méthodes publiques

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

Method Details

ClampLatitude() public static méthode

Clamps the latitude to the valid range.
public static ClampLatitude ( double latitude ) : double
latitude double The latitude.
Résultat double

ClampLongitude() public static méthode

Clamps the longitude to the valid range.
public static ClampLongitude ( double longitude ) : double
longitude double The longitude.
Résultat double

Equals() public méthode

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

GetHashCode() public méthode

Returns the hash code for this instance.
public GetHashCode ( ) : int
Résultat int

Position() public méthode

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

ToString() public méthode

Returns the fully qualified type name of this instance.
public ToString ( ) : string
Résultat string

operator() public static méthode

Implements the operator ==.
public static operator ( ) : bool
Résultat bool