|
GPS ToolKit.NET
NavData.MagBearingFromOriginToDest Property
The magnetic bearing from the current origin waypoint to the current destination waypoint.
Syntax
[Visual Basic]
object.MagBearingFromOriginToDest
[C#]
object.MagBearingFromOriginToDest
[C++]
object->MagBearingFromOriginToDest
Parameters
object
An object expression that evaluates to a NavData object.
Return Value
An Angle object containing the magnetic bearing from the currently selected GPS origin waypoint to the destination waypoint.
Remarks
- This value is not the magnetic bearing from the current position to the destination waypoint,
rather the magnetic bearing from either the origin waypoint, or from the position of the GPS at the moment the
destination waypoint was selected.
- If no magnetic bearing data is reported, the IsValid property of the Angle object is false.
Errors
None
Example
[Visual Basic]
Dim magBearing As Angle
'Get magnetic bearing from origin to destination
magBearing = myGPSToolKit.NavigationData.MagBearingFromOriginToDest
[C#]
// Get magnetic bearing from origin to destination
Angle magBearing = myGPSToolKit.NavigationData.MagBearingFromOriginToDest;
[C++]
// Get magnetic bearing from origin to destination
Angle *magBearing = myGPSToolKit.NavigationData.MagBearingFromOriginToDest;
See Also
TrueCourse property, TrueBearingToDest property, TrueBearingFromOriginToDest property
|