QHills:

Path: AerospaceUtils/Coord

--------------------------------------------------------------------------
   Generate the quaternion that transforms from the ECI to the Hills frame.
   The coordinates of the Hills frame are defined as:
        x: Radial
        z: Orbit-normal, or cross-track
        y: Completes RHS (Along-track for circular orbits)

   The relative position vector in the Frenet frame can be computed as:

   rF = QForm( qEF, drE );

   where dr is the relative position vector in the ECI frame. Or you may obtain 
   the transformation matrix, mEF, as the second output. In this case, use:

   rF = mEF*drE;
--------------------------------------------------------------------------
   Usages:
   qEH       = QHills( rE, vE );
   [qEH,mEH] = QHills( rE, vE );
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   rE          (3,n) Position vectors
   vE          (3,n) Velocity vectors

   -------
   Outputs
   -------
   q          (4,n) Quaternions

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

Children:

Common: Graphics/Plot2D
Common: Quaternion/Mat2Q
Math: Linear/Cross
Math: Linear/Unit

Back to the AerospaceUtils Module page