Convert degrees, arcminutes, arcseconds to radians.
Namespace: ASCOM.Astrometry.SOFAAssembly: ASCOM.Astrometry (in ASCOM.Astrometry.dll) Version: 6.0.0.0 (6.6.9999.9999)
Syntaxpublic int Af2a(
string s,
int ideg,
int iamin,
double asec,
ref double rad
)
Public Function Af2a (
s As String,
ideg As Integer,
iamin As Integer,
asec As Double,
ByRef rad As Double
) As Integer
public:
virtual int Af2a(
String^ s,
int ideg,
int iamin,
double asec,
double% rad
) sealed
Parameters
- s String
- Sign: '-' = negative, otherwise positive
- ideg Int32
- Degrees
- iamin Int32
- Arcminutes
- asec Double
- Arcseconds
- rad Double
- Angle in radian
Return Value
Int32Status: 0 = OK, 1 = ideg outside range 0-359, 2 = iamin outside range 0-59, 3 = asec outside range 0-59.999...
Remarks
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.
See Also