AU2Q:

Path: Common/Quaternion

% Convert an angle and a unit vector to a quaternion.
 Transforms from the unrotated to the rotated frame.

--------------------------------------------------------------------------
   Form:
   q = AU2Q( angle, u )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   angle         (1,:)   Angle (rad)
   u             (3,1)   Unit vector

   -------
   Outputs
   -------
   q             (4,:)   Quaternion from unrotated to rotated frame

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

Back to the Common Module page