C# Class fivenine.UnifiedMaps.Position

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

Public Methods

Method 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 method

Clamps the latitude to the valid range.
public static ClampLatitude ( double latitude ) : double
latitude double The latitude.
return double

ClampLongitude() public static method

Clamps the longitude to the valid range.
public static ClampLongitude ( double longitude ) : double
longitude double The longitude.
return double

Equals() public method

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.
return bool

GetHashCode() public method

Returns the hash code for this instance.
public GetHashCode ( ) : int
return int

Position() public method

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).
return System

ToString() public method

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

operator() public static method

Implements the operator ==.
public static operator ( ) : bool
return bool