rk4_step

Function rk4_step 

Source
fn rk4_step(
    pos: [f64; 3],
    vel: [f64; 3],
    time: f64,
    dt: f64,
    mu_val: f64,
    thrust: &ThrustProfile,
) -> ([f64; 3], [f64; 3])
Expand description

Perform one RK4 step.

Takes position [x,y,z] in km, velocity [vx,vy,vz] in km/s, time in seconds, and returns updated (pos, vel).