GM_UtilityCalcBearing Method |
Calculates the bearing in radians between two points. The points
can either be specified as lat/lon values or in the current projection.
Namespace:
GlobalMapper
Assembly:
GlobalMapperWrapperNET45 (in GlobalMapperWrapperNET45.dll) Version: 19.1.0.0 (19.1.0.0)
Syntax public static GM_Error_t32 CalcBearing(
double aFromX,
double aFromY,
double aToX,
double aToY,
GM_CalcBearingFlags_t8 aFlags,
out double aBearing
)
Public Shared Function CalcBearing (
aFromX As Double,
aFromY As Double,
aToX As Double,
aToY As Double,
aFlags As GM_CalcBearingFlags_t8,
<OutAttribute> ByRef aBearing As Double
) As GM_Error_t32
public:
static GM_Error_t32 CalcBearing(
double aFromX,
double aFromY,
double aToX,
double aToY,
GM_CalcBearingFlags_t8 aFlags,
[OutAttribute] double% aBearing
)
Parameters
- aFromX
- Type: SystemDouble
IN: start X/longitude coordinate - aFromY
- Type: SystemDouble
IN: start Y/latitude coordinate - aToX
- Type: SystemDouble
IN: stop X/longitude coordinate - aToY
- Type: SystemDouble
IN: stop Y/latitude coordinate - aFlags
- Type: GlobalMapper.TypesGM_CalcBearingFlags_t8
IN: flags controlling coordinate projection and returned bearing sense - aBearing
- Type: SystemDouble
OUT: bearing in radians between the points
Return Value
Type:
GM_Error_t32A GM Error Code
See Also