RelativeOrbitState:

Path: Orbit/OrbitCoord

% Find the relative coordinate state vector between x2 and x1. 
   This function is consistent with Hill's equations.
--------------------------------------------------------------------------
   Form:
   [d, y, z] = RelativeOrbitState( x1, x2 )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x1              (6,1) [r;v]
   x2              (6,1) [r;v]

   -------
   Outputs
   -------
   d               (6,1) [dR;r1*dTheta;dZ;dRDot;r1*dThetaDot;dZDot]
   y               (3,1) Tangent vector

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

Children:

Math: Linear/Cross
Math: Linear/Mag
Math: Linear/Unit

Back to the Orbit Module page