C# Class LonelySharp.GeoLocation

Afficher le fichier Open project: anthonyvscode/LonelySharp Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
CheckBounds ( ) : void
GeoLocation ( ) : System

Method Details

BoundingCoordinates() public méthode

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. ///
Résultat LonelySharp.GeoLocation[]

DistanceTo() public méthode

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
Résultat double

FromDegrees() public static méthode

Return GeoLocation from Degrees
public static FromDegrees ( double latitude, double longitude ) : GeoLocation
latitude double The latitude, in degrees.
longitude double The longitude, in degrees.
Résultat GeoLocation

FromRadians() public static méthode

Return GeoLocation from Radians
public static FromRadians ( double latitude, double longitude ) : GeoLocation
latitude double The latitude, in radians.
longitude double The longitude, in radians.
Résultat GeoLocation

ToString() public méthode

public ToString ( ) : string
Résultat string

getLatitudeInDegrees() public méthode

public getLatitudeInDegrees ( ) : double
Résultat double

getLatitudeInRadians() public méthode

public getLatitudeInRadians ( ) : double
Résultat double

getLongitudeInDegrees() public méthode

public getLongitudeInDegrees ( ) : double
Résultat double

getLongitudeInRadians() public méthode

public getLongitudeInRadians ( ) : double
Résultat double