Path: AerospaceUtils/Coord
% Computes the right ascension and declination from a unit vector.
-pi/2 <= dec < pi/2. If rALimit is entered and positive, 0 <= rA < 2*pi
--------------------------------------------------------------------------
Form:
[rA, dec] = U2RADec( u, rALimit )
--------------------------------------------------------------------------
------
Inputs
------
u (3,n) Unit vectors
rALimit (1) If > 0, will force 0 <= rA < 2*pi,
otherwise -pi <= rA <= pi (default)
-------
Outputs
-------
rA (1,n) Right ascension
dec (1,n) Declination
--------------------------------------------------------------------------
Back to the AerospaceUtils Module page