rebound-rs 4.6.0-alpha.1

Rust wrapper for the REBOUND N-body simulation library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use rebound_bind as rb;

use super::Particle;

impl Particle {
    pub fn whfast_kepler_solver(&mut self, mass: f64, dt: f64) -> &mut Self {
        let mut raw_particle: rb::reb_particle = (*self).into();
        unsafe {
            rb::reb_whfast_kepler_solver(core::ptr::null(), &mut raw_particle, mass, 0, dt);
        }
        *self = raw_particle.into();
        self
    }
}