LandingConst3D:

% Equality constraints for the landing for a 2D flat planet problem.
 The constraint is the terminal altitude and velocities. They must
 be zero. The function integrates the trajectory to find the values.
--------------------------------------------------------------------------
   Form:
   [cIn, cEq, s, t] = LandingConst3D( x, d )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x       (:,1)   [beta;dT]
   d        (.)    Data structure describing spacecraft model

   -------
   Outputs
   -------
   cIn    (1,1)   Inequality contraints
   cEq    (3,1)   Equality constraints
   s      (4,:)   State
   t      (1,:)   Corresponding times

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

Children:

Math: Integration/RK4
Math: Linear/Mag