ViewHills:

Path: FormationFlying/Visual

% Animation the relative motion in Hills frame.
 Given the reference orbital elements, a time span, and the spacecrafts'
 orbital elements, animate the relative motion. If a Hills state is available
 it may be input directly.
--------------------------------------------------------------------------
   Form:
   ViewHills( el0, el, timeSpan, method )
   ViewHills( w0, xH, timeSpan, 1 )        % relative via Hills
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   el0             (1,6) reference orbital elements [a i W w e M]
   el              (k,6) orbital elements of each spacecraft
   timeSpan         (1)  length of time to propagate
   method           (:)  method of propagation ('relative','keplerian','hi-fi')
                                               (    1           2         3   )

      - for method 1, first 3 inputs are: -

   w0              (1,1) orbital rate [rad/s]
   xH              (6,k) initial Hills state [km; km/s]
   timeSpan         (1)  

   -------
   Outputs
   -------
   sc               data structure of relative positions over time

--------------------------------------------------------------------------
  See also AnimationGUI, HillsEqns, RVOrbGen, ECI2Hills,
--------------------------------------------------------------------------