Printable versions
This Page
All Pages
PDF (2.0MB)

Index

Component
GpsToolsNET

Class
Position

Methods
Copy

LatitudeDMS
LongitudeDMS
LatitudeString
LongitudeString
Altitude

SetLatitudeDMS
SetLongitudeDMS
SetAltitude

Distance
Bearing
Move

IsSameDatum
IsSameGrid
MakeSameDatum
MakeSameGrid

Properties
Latitude
Longitude
LatitudeRads
LongitudeRads

Northing
Easting
Zone

Datum
Grid
CustomDatum
CustomGrid

ModifiedCount

Position.Bearing 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

Syntax
v = object.Bearing(Position2, Method)

Part Type Description
object GpsToolsNET.Position An object that evaluates to an GpsToolsNET.Position object.
Position2 GpsToolsNET.Position2 Second object to calculate bearing to.
Method DistanceMethod Method used to calculate bearing.
v double Bearing.



100% managed code
© 2016 Franson Technology AB, All rights reserved, Contact | | Affiliate | Login