Trait nyx_space::State [−][src]
A trait for generate propagation and estimation state. The first parameter is the size of the state, the second is the size of the propagated state including STM and extra items.
Associated Types
Loading content...Required methods
fn zeros() -> Self
[src]
Initialize an empty state
fn as_vector(&self) -> Result<VectorN<f64, Self::PropVecSize>, NyxError> where
DefaultAllocator: Allocator<f64, Self::PropVecSize>,
[src]
DefaultAllocator: Allocator<f64, Self::PropVecSize>,
Return this state as a vector for the propagation/estimation
fn stm(&self) -> Result<MatrixN<f64, Self::Size>, NyxError> where
DefaultAllocator: Allocator<f64, Self::Size, Self::Size>,
[src]
DefaultAllocator: Allocator<f64, Self::Size, Self::Size>,
Return this state as a vector for the propagation/estimation
fn set(
&mut self,
epoch: Epoch,
vector: &VectorN<f64, Self::PropVecSize>
) -> Result<(), NyxError> where
DefaultAllocator: Allocator<f64, Self::PropVecSize>,
[src]
&mut self,
epoch: Epoch,
vector: &VectorN<f64, Self::PropVecSize>
) -> Result<(), NyxError> where
DefaultAllocator: Allocator<f64, Self::PropVecSize>,
Set this state
fn add(self, other: VectorN<f64, Self::Size>) -> Self
[src]
Provided methods
fn ctor_from(
self,
delta_t_s: f64,
vector: &VectorN<f64, Self::PropVecSize>
) -> Self where
DefaultAllocator: Allocator<f64, Self::PropVecSize>,
[src]
self,
delta_t_s: f64,
vector: &VectorN<f64, Self::PropVecSize>
) -> Self where
DefaultAllocator: Allocator<f64, Self::PropVecSize>,
Reconstruct a new State from the provided delta time in seconds compared to the current state and with the provided vector.
Implementors
impl State for Orbit
[src]
Implementation of Orbit as a State for orbital dynamics with STM
type Size = U6
type PropVecSize = U42
fn zeros() -> Self
[src]
Returns a state whose position, velocity and frame are zero, and STM is I_{6x6}.
fn as_vector(&self) -> Result<VectorN<f64, U42>, NyxError>
[src]
fn set(
&mut self,
epoch: Epoch,
vector: &VectorN<f64, U42>
) -> Result<(), NyxError>
[src]
&mut self,
epoch: Epoch,
vector: &VectorN<f64, U42>
) -> Result<(), NyxError>
fn stm(&self) -> Result<Matrix6<f64>, NyxError>
[src]
fn add(self, other: VectorN<f64, Self::Size>) -> Self
[src]
impl State for SpacecraftState
[src]
type Size = U7
type PropVecSize = U43
fn zeros() -> Self
[src]
fn as_vector(&self) -> Result<VectorN<f64, U43>, NyxError>
[src]
fn set(
&mut self,
epoch: Epoch,
vector: &VectorN<f64, U43>
) -> Result<(), NyxError>
[src]
&mut self,
epoch: Epoch,
vector: &VectorN<f64, U43>
) -> Result<(), NyxError>
fn stm(&self) -> Result<MatrixN<f64, U7>, NyxError>
[src]
WARNING: Currently the STM assumes that the fuel mass is constant at ALL TIMES!