C# Class VelocityDB.geohash.util.VincentyGeodesy

Ecapsulates Vincety's geodesy algorithm .
Show file Open project: VelocityDB/VelocityDB

Public Methods

Method Description
DistanceInMeters ( WGS84Point foo, WGS84Point bar ) : double
MoveInDirection ( WGS84Point point, double bearingInDegrees, double distanceInMeters ) : WGS84Point

returns the WGS84Point that is in the given direction at the following distance of the given point.
Uses Vincenty's formula and the WGS84 ellipsoid.

Method Details

DistanceInMeters() public static method

public static DistanceInMeters ( WGS84Point foo, WGS84Point bar ) : double
foo WGS84Point
bar WGS84Point
return double

MoveInDirection() public static method

returns the WGS84Point that is in the given direction at the following distance of the given point.
Uses Vincenty's formula and the WGS84 ellipsoid.
public static MoveInDirection ( WGS84Point point, double bearingInDegrees, double distanceInMeters ) : WGS84Point
point WGS84Point : where to start
bearingInDegrees double /// : must be within 0 and 360
distanceInMeters double : How far to move in the given direction
return WGS84Point