Rates2EulDot:
--------------------------------------------------------------------------
Converts angular velocity into 3-2-1 Euler angle rates. If only one
input is given, the output is the transformation matrix.
--------------------------------------------------------------------------
Form:
wEul = Rates2EulDot( e, w, n )
--------------------------------------------------------------------------
------
Inputs
------
e (3) Euler angles
w (3) Angular rates
n (1) Orbit rate (for rotating frames only, optional)
-------
Outputs
-------
wEul (3) Euler angle rates
--------------------------------------------------------------------------
Reference: Hughes, Spacecraft Attitude Dynamics (1986), Table 2.2 p. 27
--------------------------------------------------------------------------