[−][src]Struct nyx_space::dynamics::spacecraft::Spacecraft
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]
celestial: CelestialDynamics<'a>,
prop: Propulsion<T>,
dry_mass: f64,
fuel_mass: f64
) -> Self
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
fn time(&self) -> f64
[src]
fn state(&self) -> Self::StateType
[src]
fn state_vector(&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>
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,
T: Unpin,
impl<'a, T> !UnwindSafe for Spacecraft<'a, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,