GpsTools v2.20 and later|
Calculates bearing between two Position objects. The Method parameter determines how the
bearing is calculated. The bearing is specified in degrees. 0 (or 360) is North, 90 is east, 180
south and 270 west.
Method = 1, Great Circle Bearing
If you are unsure about which method to use, then use this method. You will always get an
accurate result over short and long distances.
Earths radius is assumed to be 6,366,710 meters, which results in a nautical mile of 1852 meters.
This method is typically used at sea and air.
Method = 3, Grid
Use this method if you want to calculate the bearing/heading on a grid.
Typically used on land maps.
See also Position.Distance
v = object.Bearing(Position2, Method)
||An object that evaluates to an GpsToolsNET.Position object.
||Second object to calculate bearing to.
||Method used to calculate bearing.
100% managed code