Struct nyx_space::dynamics::celestial::TwoBody
[−]
[src]
pub struct TwoBody { /* fields omitted */ }
TwoBody
exposes the equations of motion for a simple two body propagation.
Methods
impl TwoBody
[src]
pub fn with_gm(state: &Vector6<f64>, mu: f64) -> TwoBody
[src]
Initialize TwoBody dynamics given a provided gravitional parameter (as mu
)
pub fn around(state: &Vector6<f64>, obj: &Planet) -> TwoBody
[src]
Initialize TwoBody dynamics given a provided a reference to a Planet
(cf. nyx::celestia).
Trait Implementations
impl Copy for TwoBody
[src]
impl Clone for TwoBody
[src]
fn clone(&self) -> TwoBody
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Dynamics for TwoBody
[src]
type StateSize = U6
Defines the state size for these dynamics. It must be imported from nalgebra
.
fn time(&self) -> f64
[src]
Returns the time of the current state
fn state(&self) -> VectorN<f64, Self::StateSize>
[src]
Returns the current state of the dynamics so it can be integrated.
fn set_state(&mut self, new_t: f64, new_state: &VectorN<f64, Self::StateSize>)
[src]
Updates the internal state of the dynamics. Read more
fn eom(
&self,
_t: f64,
state: &VectorN<f64, Self::StateSize>
) -> VectorN<f64, Self::StateSize>
[src]
&self,
_t: f64,
state: &VectorN<f64, Self::StateSize>
) -> VectorN<f64, Self::StateSize>
Defines the equations of motion for these dynamics, or a combination of provided dynamics. XXX: Is this going to work in derive
?!