[−][src]Struct nyx_space::dynamics::celestial::TwoBody
TwoBody
exposes the equations of motion for a simple two body propagation.
Fields
mu: f64
tx_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
.
fn time(&self) -> f64
[src]
fn state(&self) -> VectorN<f64, Self::StateSize>
[src]
fn set_state(&mut self, new_t: f64, new_state: &VectorN<f64, Self::StateSize>)
[src]
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>
impl<'a> Clone for TwoBody<'a>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,