| 172 | } |
| 173 | |
| 174 | std::vector<float> euler_step( |
| 175 | const std::vector<float> & x, |
| 176 | const std::vector<float> & velocity, |
| 177 | float dt) { |
| 178 | std::vector<float> out = x; |
| 179 | euler_step_in_place(out, velocity, dt); |
| 180 | return out; |
| 181 | } |
| 182 | |
| 183 | void euler_step_in_place( |
| 184 | std::vector<float> & x, |