C# Class LonelySharp.GeoLocation

显示文件 Open project: anthonyvscode/LonelySharp Class Usage Examples

Public Methods

Method 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

Method Description
CheckBounds ( ) : void
GeoLocation ( ) : System

Method Details

BoundingCoordinates() public method

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. ///
return LonelySharp.GeoLocation[]

DistanceTo() public method

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
return double

FromDegrees() public static method

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

FromRadians() public static method

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

ToString() public method

public ToString ( ) : string
return string

getLatitudeInDegrees() public method

public getLatitudeInDegrees ( ) : double
return double

getLatitudeInRadians() public method

public getLatitudeInRadians ( ) : double
return double

getLongitudeInDegrees() public method

public getLongitudeInDegrees ( ) : double
return double

getLongitudeInRadians() public method

public getLongitudeInRadians ( ) : double
return double