[][src]Struct nyx_space::dynamics::spacecraft::Spacecraft

pub struct Spacecraft<'a, T: ThrustControl> {
    pub celestial: CelestialDynamics<'a>,
    pub force_models: Vec<Box<dyn ForceModel + 'a>>,
    pub prop: Option<Propulsion<T>>,
    pub dry_mass: f64,
    pub fuel_mass: f64,
    // some fields omitted
}

Fields

celestial: CelestialDynamics<'a>force_models: Vec<Box<dyn ForceModel + 'a>>prop: Option<Propulsion<T>>dry_mass: f64

in kg

fuel_mass: f64

in kg

Methods

impl<'a, T: ThrustControl> Spacecraft<'a, T>[src]

pub fn with_prop(
    celestial: CelestialDynamics<'a>,
    prop: Propulsion<T>,
    dry_mass: f64,
    fuel_mass: f64
) -> Self
[src]

Initialize a Spacecraft with a set of celestial dynamics and a propulsion subsystem.

pub fn new(celestial: CelestialDynamics<'a>, dry_mass: f64) -> Self[src]

Initialize a Spacecraft with a set of celestial dynamics and with SRP enabled.

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

Trait Implementations

impl<'a, T: ThrustControl> Dynamics for Spacecraft<'a, T>[src]

type StateSize = U7

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

type StateType = SpacecraftState

Defines the type which will be published on the propagator channel

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for Spacecraft<'a, T>

impl<'a, T> !Send for Spacecraft<'a, T>

impl<'a, T> !Sync for Spacecraft<'a, T>

impl<'a, T> Unpin for Spacecraft<'a, T> where
    T: Unpin

impl<'a, T> !UnwindSafe for Spacecraft<'a, T>

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>,