NovasVector2RaDec Method
Converts a vector in equatorial rectangular coordinates to equatorial spherical coordinates.
Namespace: ASCOM.Tools.Novas31Assembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
public static short Vector2RaDec(
double[] Pos,
ref double Ra,
ref double Dec
)
Public Shared Function Vector2RaDec (
Pos As Double(),
ByRef Ra As Double,
ByRef Dec As Double
) As Short
- Pos Double
- Position vector, equatorial rectangular coordinates.
- Ra Double
- Right ascension in hours.
- Dec Double
- Declination in degrees.
Int16
= 0 ... Everything OK.
= 1 ... All vector components are zero; 'Ra' and 'Dec' are indeterminate.
= 2 ... Both Pos[0] and Pos[1] are zero, but Pos[2] is nonzero; 'Ra' is indeterminate.
Supported in: 2.0