SubOrbVelocity:

--------------------------------------------------------------------------
   Compute initial velocity and flight time for a sub-orbital trajectory.

   Given an initial altitude and flight path angle, compute the required
   velocity for it to hit the target. The target is located at a given
   altitude and a specified angular distance (around the Earth).

   If not outputs are specified it will perform a simulation of the
   initial conditions using a 0.5 sec timestep, demonstrating that the 
   correct trajectory is obtained.

   Since version 1.0
--------------------------------------------------------------------------
   Form:
   [V,tF,lambda] = SubOrbVelocity( gamma, h0, hF, angleDist )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   gamma           (1,1) Initial flight path angle (rad)
   h0              (1,1) Initial altitude (km)
   hF              (1,1) Final altitude (km)
   angleDist       (1,1) Angular distance of flight around Earth (rad)

   -------
   Outputs
   -------
   V               (1,1) Initial velocity required (km/s)
   tF              (1,1) Flight Time (sec)
   lambda          (1,1) 

   See also SubOrbDistance, SubOrbLambert
--------------------------------------------------------------------------
   References:   Zarchan, P. (2002) Tactical and Strategic Missile
                    Guidance, 4th Edition, pp. 239-244.
--------------------------------------------------------------------------

Children:

Common: Graphics/Plot2D
LaunchVehicle: Utilities/LaunchConstants
Math: Integration/RK4TI
Math: Linear/Mag