C# 클래스 fivenine.UnifiedMaps.Position

A struct that has a latitude and longitude, stored as doubles.
파일 보기 프로젝트 열기: fiveninedigital/UnifiedMaps 1 사용 예제들

공개 메소드들

메소드 설명
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