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.1.1.2619)

Syntax

C#
public static short Vector2RADec(
	double[] pos,
	ref double ra,
	ref double dec
)
Visual Basic
Public Shared Function Vector2RADec ( _
	pos As Double(), _
	ByRef ra As Double, _
	ByRef dec As Double _
) As Short
Visual C++
public:
static short Vector2RADec(
	array<double>^ pos, 
	double% ra, 
	double% dec
)

Parameters

pos
Type: array<System..::..Double>[]()[][]
Position vector, equatorial rectangular coordinates.
ra
Type: System..::..Double%
OUT: Right ascension in hours.
dec
Type: System..::..Double%
OUT: Declination in degrees.

Return Value

 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