Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.55 KB

numerics_runge_kutta.md

File metadata and controls

33 lines (22 loc) · 1.55 KB

std::numerics::runge_kutta

Functions

rk23

pub sync fn rk23 ( accel : sync fn(float, ksp::math::Vec3, ksp::math::Vec3) -> ksp::math::Vec3,
                   end_condition : sync fn(float, ksp::math::Vec3, ksp::math::Vec3) -> bool,
                   start_t : float,
                   start_position : ksp::math::Vec3,
                   start_velocity : ksp::math::Vec3,
                   min_dt : float,
                   max_dt : float ) -> (position : ksp::math::Vec3, t : float, velocity : ksp::math::Vec3)[]

Parameters

Name Type Optional Description
accel sync fn(float, ksp::math::Vec3, ksp::math::Vec3) -> ksp::math::Vec3
end_condition sync fn(float, ksp::math::Vec3, ksp::math::Vec3) -> bool
start_t float
start_position ksp::math::Vec3
start_velocity ksp::math::Vec3
min_dt float
max_dt float