SofaAf2a Method
Convert degrees, arcminutes, arcseconds to radians.
Namespace: ASCOM.ToolsAssembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
public static short Af2a(
char s,
short ideg,
short iamin,
double asec,
ref double rad
)
Public Shared Function Af2a (
s As Char,
ideg As Short,
iamin As Short,
asec As Double,
ByRef rad As Double
) As Short
- s Char
- Sign: '-' = negative, otherwise positive
- ideg Int16
- Degrees
- iamin Int16
- Arcminutes
- asec Double
- Arcseconds
- rad Double
- Angle in radian
Int16Status: 0 = OK, 1 = ideg outside range 0-359, 2 = iamin outside range 0-59, 3 = asec outside range 0-59.999...
Notes:
- The result is computed even if any of the range checks fail.
- Negative ideg, iamin and/or asec produce a warning status, but the absolute value is used in the conversion.
- If there are multiple errors, the status value reflects only the first, the smallest taking precedence.
Supported in: 2.0