[][src]Struct nyx_space::dynamics::celestial::CelestialDynamics

pub struct CelestialDynamics<'a> {
    pub state: State,
    pub accel_models: Vec<Box<dyn AccelModel + 'a>>,
    // some fields omitted
}

CelestialDynamics provides the equations of motion for any celestial dynamic, without state transition matrix computation.

Fields

state: State

Current state of these dynamics

accel_models: Vec<Box<dyn AccelModel + 'a>>

Methods

impl<'a> CelestialDynamics<'a>[src]

pub fn new(state: State, bodies: Vec<i32>, cosm: &'a Cosm) -> Self[src]

Initialize third body dynamics given the EXB IDs and a Cosm

pub fn two_body(state: State) -> Self[src]

Initializes a CelestialDynamics which does not simulate the gravity pull of other celestial objects but the primary one.

pub fn add_model(&mut self, accel_model: Box<dyn AccelModel + 'a>)[src]

pub fn state_ctor(&self, rel_time: f64, state_vec: &Vector6<f64>) -> State[src]

Trait Implementations

impl<'a> Dynamics for CelestialDynamics<'a>[src]

type StateSize = U6

Defines the state size for these dynamics. It must be imported from nalgebra.

type StateType = State

Defines the type which will be published on the propagator channel

fn time(&self) -> f64[src]

Returns the relative time to the propagator. Use prop.dynamics.state.dt for absolute time

Auto Trait Implementations

impl<'a> !RefUnwindSafe for CelestialDynamics<'a>

impl<'a> !Send for CelestialDynamics<'a>

impl<'a> !Sync for CelestialDynamics<'a>

impl<'a> Unpin for CelestialDynamics<'a>

impl<'a> !UnwindSafe for CelestialDynamics<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,