Convert degrees, arcminutes, arcseconds to radians.

Namespace: ASCOM.Astrometry.SOFA
Assembly: ASCOM.Astrometry (in ASCOM.Astrometry.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
public int Af2a(
	string s,
	int ideg,
	int iamin,
	double asec,
	ref double rad
)
Visual Basic
Public Function Af2a ( _
	s As String, _
	ideg As Integer, _
	iamin As Integer, _
	asec As Double, _
	ByRef rad As Double _
) As Integer
Visual C++
public:
virtual int Af2a(
	String^ s, 
	int ideg, 
	int iamin, 
	double asec, 
	double% rad
) sealed

Parameters

s
Type: System..::..String
Sign: '-' = negative, otherwise positive
ideg
Type: System..::..Int32
Degrees
iamin
Type: System..::..Int32
Arcminutes
asec
Type: System..::..Double
Arcseconds
rad
Type: System..::..Double%
Angle in radian

Return Value

Status: 0 = OK, 1 = ideg outside range 0-359, 2 = iamin outside range 0-59, 3 = asec outside range 0-59.999...

Remarks

Notes:
  1. The result is computed even if any of the range checks fail.
  2. Negative ideg, iamin and/or asec produce a warning status, but the absolute value is used in the conversion.
  3. If there are multiple errors, the status value reflects only the first, the smallest taking precedence.

See Also