Rotating2Inertial:
--------------------------------------------------------------------------
Converts a coordinates in a rotating reference frame (such as the
rotating coordinates typically used in the circular restricted three body
problem) to coordinates in an inertial reference frame. Both frames are
centered at the secondary body. The rotating coordinate system has the
primary body fixed on the x-axis
--------------------------------------------------------------------------
Form:
stateOut = Rotating2Inertial(stateIn,primary,muPrimary)
--------------------------------------------------------------------------
------
Inputs
------
stateIn (6,1) State vector in the rotating frame
primary (6,1) State vector of the primary body
muPrimary (1,1) Gravitational Parameter of the primary body
-------
Outputs
-------
stateOut (6,1) State vector in the non-rotating frame
--------------------------------------------------------------------------
Children:
Common: Math/Mag
Common: Math/Unit