Click or drag to resize
NOVAS2COMVector2RADec Method
Converts an 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
OUT: Right ascension in hours.
dec
Type: SystemDouble
OUT: Declination in degrees.

Return Value

Type: Int16
 0...Everything OK.
 1...All vector components are zero; 'ra' and 'dec' are indeterminate.
 2...Both vec[0] and vec[1] are zero, but vec[2] is nonzero; 'ra' is indeterminate.
Remarks