C# 클래스 WebApplications.Utilities.Location.LatLng

Stores the Latitude/Longitude of a point.
파일 보기 프로젝트 열기: webappsuk/CoreLibraries 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Latitude double
Longitude double

공개 메소드들

메소드 설명
Distance ( LatLng pointOne, LatLng pointTwo, DistanceCalculation calculation = DistanceCalculation.LawOfCosines ) : double

Calculates the distance (in km) between two specified latlong points. By default this uses the Law of Cosines formula (http://en.wikipedia.org/wiki/Law_of_cosines).

DistanceTo ( LatLng otherPoint, DistanceCalculation calculation = DistanceCalculation.LawOfCosines ) : double

Calculates the distance (in km) between the current point and the point specified. By default this uses the Law of Cosines formula (http://en.wikipedia.org/wiki/Law_of_cosines).

LatLng ( double latitude, double longitude ) : System

Initialises a new instance of the LatLng class.

MidPoint ( LatLng pointOne, LatLng pointTwo ) : LatLng

Calculates the midpoint between two specified latlong points.

MidpointTo ( LatLng otherPoint ) : LatLng

Calculates the midpoint between the current point and the point specified.

ToString ( ) : string

Returns a string that represents this instance.

메소드 상세

Distance() 공개 정적인 메소드

Calculates the distance (in km) between two specified latlong points. By default this uses the Law of Cosines formula (http://en.wikipedia.org/wiki/Law_of_cosines).
/// The specified is outside the allowable values. ///
public static Distance ( LatLng pointOne, LatLng pointTwo, DistanceCalculation calculation = DistanceCalculation.LawOfCosines ) : double
pointOne LatLng The first point to use in the calculation.
pointTwo LatLng The second point to use in the calculation.
calculation DistanceCalculation /// The calculation to use. /// By default this uses the Law of Cosines formula. ///
리턴 double

DistanceTo() 공개 메소드

Calculates the distance (in km) between the current point and the point specified. By default this uses the Law of Cosines formula (http://en.wikipedia.org/wiki/Law_of_cosines).
/// The specified is outside the allowable values. ///
public DistanceTo ( LatLng otherPoint, DistanceCalculation calculation = DistanceCalculation.LawOfCosines ) : double
otherPoint LatLng The point we want to calculate the distance to.
calculation DistanceCalculation /// The distance calculation to use. /// By default this uses the Law of Cosines formula. ///
리턴 double

LatLng() 공개 메소드

Initialises a new instance of the LatLng class.
public LatLng ( double latitude, double longitude ) : System
latitude double The Latitude of the point.
longitude double The Longitude of the point.
리턴 System

MidPoint() 공개 정적인 메소드

Calculates the midpoint between two specified latlong points.
public static MidPoint ( LatLng pointOne, LatLng pointTwo ) : LatLng
pointOne LatLng The first point to use in the calculation.
pointTwo LatLng The second point to use in the calculation.
리턴 LatLng

MidpointTo() 공개 메소드

Calculates the midpoint between the current point and the point specified.
public MidpointTo ( LatLng otherPoint ) : LatLng
otherPoint LatLng The other point to use in the calculation.
리턴 LatLng

ToString() 공개 메소드

Returns a string that represents this instance.
public ToString ( ) : string
리턴 string

프로퍼티 상세

Latitude 공개적으로 프로퍼티

The Latitude of the point.
public double Latitude
리턴 double

Longitude 공개적으로 프로퍼티

The Longitude of the point.
public double Longitude
리턴 double