ECI2LVLH:

Path: FormationFlying/Transformation

% Compute relative LVLH state from a reference ECI state and ECI state
 This function takes two ECI state vectors, and returns the relative state
 in the LVLH frame. It treats the first input as the reference state.

--------------------------------------------------------------------------
   Form:
   xL = ECI2LVLH( x0, x1 )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x0              (6,1) [r;v] ECI frame (reference)
   x1              (6,n) [r;v] ECI frame

   -------
   Outputs
   -------
   xL              (6,n) [r; v] LVLH frame

--------------------------------------------------------------------------
  See also ECI2Hills, Hills2LVLH
--------------------------------------------------------------------------