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

Syntax

C#
public short Vector2RaDec(
	double[] Pos,
	ref double Ra,
	ref double Dec
)
Visual Basic
Public Function Vector2RaDec ( _
	Pos As Double(), _
	ByRef Ra As Double, _
	ByRef Dec As Double _
) As Short
Visual C++
public:
virtual short Vector2RaDec(
	array<double>^ Pos, 
	double% Ra, 
	double% Dec
) sealed

Parameters

Pos
Type: array<System..::..Double>[]()[][]
Position vector, equatorial rectangular coordinates.
Ra
Type: System..::..Double%
Right ascension in hours.
Dec
Type: System..::..Double%
Declination in degrees.

Return Value

 = 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