This function converts angles between three units: decimal degrees, radians, and packed degrees-minutes-seconds. In the degrees-minutes-seconds unit, an angle is expressed as an integral number of degrees and minutes and a float point value of seconds packed as a single double as follows: DDDMMMSSS.SS.
To convert 27.5 degrees to packed format:
inAng = 27.5
outAng = EOS_EH_CONVANG(inAng, 3)
outAng will contain the value 27030000.00.
Result = EOS_EH_CONVANG(inAngle, code)
Returns angle in desired units.
Input angle (float).
Conversion code (long). Allowable values are:
- 0 = Radians to Degrees
- 1 = Degrees to Radians
- 2 = DMS to Degrees
- 3 = Degrees to DMS
- 4 = Radians to DMS
- 5 = DMS to Radians