Q2RADec:

Path: AerospaceUtils/Coord

% Compute right ascension and declination of a vector from a quaternion.
 Given Q which transforms from the inertial frame to the body frame
 and u in the body frame, finds the right ascension and declination
 of u in the inertial frame.

--------------------------------------------------------------------------
   Form:
   [rA, dec] = Q2RADec( u, q )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   u                   (3,1)    Vector
   q                   (4,1)    Quaternion

   -------
   Outputs
   -------
   rA                  (1,1)    Right ascension (rad)
   dec                 (1,1)    Declination (rad)

--------------------------------------------------------------------------

Children:

AerospaceUtils: Coord/U2RADec
Common: Quaternion/QTForm

Back to the AerospaceUtils Module page