PropagateState3D:

% Propagate the 3D state for the landing problem.
--------------------------------------------------------------------------
   Form:
   xP = PropagateState3D( x, dT, d )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x       (7,:)   Initial state [x;y;z;vX;vY;vZ;m]
   dT      (1,:)   Delta time for each step
   d        (.)    Data structure describing spacecraft model
                   .beta   (1,:) Thrust angle in rv plane
                   .alpha  (1,:) Thrust angle out of plane
                   .thrust (1,:) Thrust (N)
                   .accel  (1,:) 'constant' or 'free'
                   .m0     (1,1) Dry mass
                   .radius (1,1) Planet radius

   -------
   Outputs
   -------
   xP    (7,:)   State

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

Children:

Math: Integration/RK4
Math: Linear/Mag