OrigToDestTrueBearing Property
Returns the true bearing from the current origin waypoint to the current destination waypoint.
Syntax
Visual Basic
object.OrigToDestTrueBearing
Visual C++
object.GetOrigToDestTrueBearing()
| Part
| Description |
| object |
An object expression that evaluates to a GPS ToolKit object. |
Example
Visual Basic
Dim trueBearing As Double
'Get true bearing to from origin to destination waypoint
trueBearing = myGPSToolKit.OrigToDestTrueBearing
Visual C++
_variant_t vtTrueBearing;
// Get true bearing from origin to destination waypoint
vtTrueBearing = m_myGPSToolKit.GetOrigToDestTrueBearing();
double trueBearing = (double)vtTrueBearing;
Remarks
This value is NOT the true bearing from the current position to the destination waypoint,
rather the true bearing from either the origin waypoint, or from the position of the GPS at the moment the
destination waypoint was selected.
Default
Empty (VT_EMPTY)
Returns
A VARIANT (type VT_R8/double) containing the last reported true bearing value in degrees.
If no true bearing data is reported the variable will be empty (type VT_EMPTY).
Errors
None
See Also
TrueCourse property, TrueBearingToDest property, OrigToDestMagBearing property
|