Trait nyx_space::cosmic::State [−][src]
pub trait State: Copy + PartialEq + Display + LowerExp + Send + Sync where
Self: Sized,
DefaultAllocator: Allocator<f64, Self::Size> + Allocator<f64, Self::Size, Self::Size> + Allocator<f64, Self::VecLength>, {
type Size: DimName;
type VecLength: DimName;
fn as_vector(&self) -> Result<OVector<f64, Self::VecLength>, NyxError>;
fn set(
&mut self,
epoch: Epoch,
vector: &OVector<f64, Self::VecLength>
) -> Result<(), NyxError>;
fn epoch(&self) -> Epoch;
fn set_epoch(&mut self, epoch: Epoch);
fn zeros() -> Self { ... }
fn stm(&self) -> Result<OMatrix<f64, Self::Size, Self::Size>, NyxError> { ... }
fn reset_stm(&mut self) { ... }
fn set_with_delta_seconds(
self,
delta_t_s: f64,
vector: &OVector<f64, Self::VecLength>
) -> Self
where
DefaultAllocator: Allocator<f64, Self::VecLength>,
{ ... }
fn add(self, _other: OVector<f64, Self::Size>) -> Self { ... }
}
Expand description
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
Required methods
Return this state as a vector for the propagation/estimation
Set this state
Provided methods
Initialize an empty state By default, this is not implemented. This function must be implemented when filtering on this state.
Return this state as a vector for the propagation/estimation By default, this is not implemented. This function must be implemented when filtering on this state.
Return this state as a vector for the propagation/estimation By default, this is not implemented. This function must be implemented when filtering on this state.
fn set_with_delta_seconds(
self,
delta_t_s: f64,
vector: &OVector<f64, Self::VecLength>
) -> Self where
DefaultAllocator: Allocator<f64, Self::VecLength>,
fn set_with_delta_seconds(
self,
delta_t_s: f64,
vector: &OVector<f64, Self::VecLength>
) -> Self where
DefaultAllocator: Allocator<f64, Self::VecLength>,
Reconstruct a new State from the provided delta time in seconds compared to the current state and with the provided vector.