Click or drag to resize
NOVAS3Vector2RaDec Method
Converts a vector in equatorial rectangular coordinates to equatorial spherical coordinates.

Namespace: ASCOM.Astrometry.NOVAS
Assembly: ASCOM.Astrometry (in ASCOM.Astrometry.dll) Version: 6.0.0.0 (6.2.0.2774)
Syntax
public short Vector2RaDec(
	double[] Pos,
	ref double Ra,
	ref double Dec
)

Parameters

Pos
Type: SystemDouble
Position vector, equatorial rectangular coordinates.
Ra
Type: SystemDouble
Right ascension in hours.
Dec
Type: SystemDouble
Declination in degrees.

Return Value

Type: 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.
 
Remarks