RestrictDeltaV:

% Restrict the in-plane and cross-track components of the delta-v
--------------------------------------------------------------------------
   Form:
   dVSLO = RestrictDeltaV( dVSLO, xSLO, n, dMin, x0, aE )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   dVSLO    (3,1)    Intended delta-v in SLO frame
   xSLO     (6,1)    Relative state, SLO-frame
   n         (1)     Mean orbit rate   [rad/s]
   dMin      (1)     Min. separation distance [km]
   x0        (1)     Desired along-track offset [km]
   aE        (1)     Desired Semi-major axis of relative ellipse [km]

   -------
   Outputs
   -------
   dVSLO    (3,1)    Restricted delta-v in SLO frame

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