GreatCircle Class

Definition

This class provides some basic geodetic calculations on the WGS84 ellipsoid. This returns exact distances between two points, considering the non-spherical shape of the earth. The results are accurate for distances greater than about 1cm.

public static class GreatCircle
type GreatCircle = class
Public Class GreatCircle
Inheritance
GreatCircle

Fields

MetersPerDegreeeLatitude

m per degree latitude

MetersPerDegreeLongitude

m per degree longitude on the equator

Wgs84A

Semi-Mayor Axis of the WGS ellipsoid

Wgs84F

Flattening "f" of the WGS84 ellipsoid (1.0 / 298.25722357)

Methods

AngleDifferenceSignedDegrees(Double, Double)

Calculate the difference between two angles, return degrees.

AviaticToRadians(Double)

Converts an angle in aviatic definition to mathematic definition. Aviatic angles are in degrees, where 0 degrees is north, counting clockwise, mathematic angles are in radians, starting east and going counterclockwise.

CalcCoords(Double, Double, Double, Double, Double, Double)

Calculate the coordinate one will be when traveling for the given distance in the given direction

CalcCoords(GeographicPosition, Angle, Length)

Calculate the coordinate one will be when traveling for the given distance in the given direction

CalculateRoute(GeographicPosition, Angle, Length, Length)

Calculate waypoints along a route

CalculateRoute(GeographicPosition, Double, Double, Double)

Calculate waypoints along a route

CalculateRoute(GeographicPosition, GeographicPosition, Double)

Calculate a list of waypoints along the route from start to end.

CalculateRoute(GeographicPosition, GeographicPosition, Length)

Calculate a list of waypoints along the route from start to end.

CalculateVelocityTowardsTarget(GeographicPosition, GeographicPosition, Speed, Angle)

Calculate the velocity towards (or away from) the target. This is often also called VMG (=Velocity made good)

CrossTrackError(GeographicPosition, GeographicPosition, GeographicPosition, Length, Length)

Computes cross-track error, that is the distance the current position is away from the route from origin to destination

DegreesToRadians(Double)

Convert a value to radians.

DistAndDir(Double, Double, Double, Double, Double, Double)

Returns the distance and direction between two points on the globe

DistAndDir(GeographicPosition, GeographicPosition, Length, Angle)

Returns the distance and direction between two points on the globe

DistAndDir(GeographicPosition, GeographicPosition, Length, Angle, Angle)

Returns the distance and direction between two points on the globe

RadiansToAviatic(Double)

Convert angle from mathematic to aviatic. See also AviaticToRadians()

RadiansToDegrees(Double)

Converts an angle in radians to angle in decimal degrees

Applies to