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

pub struct TwoBody<'a> {
    pub mu: f64,
    pub tx_chan: Option<&'a Sender<(f64, Vector6<f64>)>>,
    // some fields omitted
}

TwoBody exposes the equations of motion for a simple two body propagation.

Fields

mu: f64tx_chan: Option<&'a Sender<(f64, Vector6<f64>)>>

Methods

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

pub fn from_state_vec_with_gm(state: Vector6<f64>, mu: f64) -> TwoBody<'a>[src]

Initialize TwoBody dynamics given a provided gravitional parameter (as mu)

pub fn from_state_vec<B: CelestialBody>(state: Vector6<f64>) -> TwoBody<'a>[src]

Initialize TwoBody dynamics around a provided CelestialBody from the provided state vector (cf. nyx::celestia).

Trait Implementations

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

type StateSize = U6

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

impl<'a> Clone for TwoBody<'a>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

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

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

Blanket Implementations

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

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

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