AddGoals:

Path: FormationFlying/Coord

% Add one set of geometric goals to the other.
 Given the geometry of A and the geometry of B with respect to A, 
 compute the geometry of B.

--------------------------------------------------------------------------
   Form:
   gB = AddGoals( e, nu, gA, gBA, n );
--------------------------------------------------------------------------

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

   -------
   Outputs
   -------
   gB               (.)      Geometric goals of B
                                gB = gA + gBA

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