C# Класс LonelySharp.GeoLocation

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
BoundingCoordinates ( double distance ) : LonelySharp.GeoLocation[]

Computes the bounding coordinates of all points on the surface of a sphere that have a great circle distance to the point represented by this GeoLocation instance that is less or equal to the distance argument. For more information about the formulae used in this method visit http://JanMatuschek.de/LatitudeLongitudeBoundingCoordinates

DistanceTo ( GeoLocation location ) : double

Computes the great circle distance between this GeoLocation instance and the location argument.

FromDegrees ( double latitude, double longitude ) : GeoLocation

Return GeoLocation from Degrees

FromRadians ( double latitude, double longitude ) : GeoLocation

Return GeoLocation from Radians

ToString ( ) : string
getLatitudeInDegrees ( ) : double
getLatitudeInRadians ( ) : double
getLongitudeInDegrees ( ) : double
getLongitudeInRadians ( ) : double

Приватные методы

Метод Описание
CheckBounds ( ) : void
GeoLocation ( ) : System

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

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

Computes the bounding coordinates of all points on the surface of a sphere that have a great circle distance to the point represented by this GeoLocation instance that is less or equal to the distance argument. For more information about the formulae used in this method visit http://JanMatuschek.de/LatitudeLongitudeBoundingCoordinates
public BoundingCoordinates ( double distance ) : LonelySharp.GeoLocation[]
distance double The distance from the point represented by this /// GeoLocation instance. Must me measured in the same unit as the radius argument. ///
Результат LonelySharp.GeoLocation[]

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

Computes the great circle distance between this GeoLocation instance and the location argument.
public DistanceTo ( GeoLocation location ) : double
location GeoLocation Location to act as the centre point
Результат double

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

Return GeoLocation from Degrees
public static FromDegrees ( double latitude, double longitude ) : GeoLocation
latitude double The latitude, in degrees.
longitude double The longitude, in degrees.
Результат GeoLocation

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

Return GeoLocation from Radians
public static FromRadians ( double latitude, double longitude ) : GeoLocation
latitude double The latitude, in radians.
longitude double The longitude, in radians.
Результат GeoLocation

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

public ToString ( ) : string
Результат string

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

public getLatitudeInDegrees ( ) : double
Результат double

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

public getLatitudeInRadians ( ) : double
Результат double

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

public getLongitudeInDegrees ( ) : double
Результат double

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

public getLongitudeInRadians ( ) : double
Результат double