SubGoals:

Path: FormationFlying/Coord

% Subtract one set of geometric goals from the other.

   Given the geometry of A and the geometry of B, compute the geometry 
   of B with respect to A.

   Since version 7.
--------------------------------------------------------------------------
   Form:
   gBA = SubGoals( e, nu, gA, gB, n );
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   e                (1)      Eccentricity
   nu               (1)      True anomaly   [rad]
   gA               (.)      Geometric goals of A
   gB               (.)      Geometric goals of B
   n                (1)      Mean orbit rate

   -------
   Outputs
   -------
   gBA              (.)      Geometric goals of B with respect to A
                                gBA = gB - gA

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