SofaAf2a Method

Convert degrees, arcminutes, arcseconds to radians.

Definition

Namespace: ASCOM.Tools
Assembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static short Af2a(
	char s,
	short ideg,
	short iamin,
	double asec,
	ref double rad
)

Parameters

s  Char
Sign: '-' = negative, otherwise positive
ideg  Int16
Degrees
iamin  Int16
Arcminutes
asec  Double
Arcseconds
rad  Double
Angle in radian

Return Value

Int16
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.

Version Information

.NET Standard

Supported in: 2.0

See Also