Three-dimensional equation of motion
The three coordinates are downrange, vertical and crossrange. The launch elevation and bearing set all three starting velocity components. An RK4 integrator steps the point particle forward and uses a smaller maximum step when drag is strong.