AnglesMcInnesToU:

% Angles to unit vector using McInnes' convention. u will be AWAY from the sun.
 The cone and clock angles define the vector from the reference axes such that

 n = cos(cone)*r + sin(cone)*cos(clock)*p + sin(cone)*sin(clock)*z

 where p is the orbit normal and z = p x r. A special function is necessary
 because McInnes does not define clock from the y-axis of a right-handed
 frame.

--------------------------------------------------------------------------
   Form:
   u = AnglesMcInnesToU( cone, clock, q )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   cone          (1,:) Cone angle (rad)
   clock         (1,:) Clock angle (rad)
   q             (1,:) Rotation from inertial to clock reference frame

   -------
   Outputs
   -------
   u    

--------------------------------------------------------------------------
   See also AnglesRotToU
--------------------------------------------------------------------------

Children:

Math: Linear/Cross
Math: Linear/Unit