pub trait Interpolatable: Statewhere
Self: Sized,
DefaultAllocator: Allocator<Self::Size> + Allocator<Self::Size, Self::Size> + Allocator<Self::VecLength>,{
// Required methods
fn interpolate(
self,
epoch: Epoch,
states: &[Self],
) -> Result<Self, InterpolationError>;
fn frame(&self) -> Frame;
fn set_frame(&mut self, frame: Frame);
fn export_params() -> Vec<StateParameter>;
}
Expand description
States that can be interpolated should implement this trait.
Required Methods§
Sourcefn interpolate(
self,
epoch: Epoch,
states: &[Self],
) -> Result<Self, InterpolationError>
fn interpolate( self, epoch: Epoch, states: &[Self], ) -> Result<Self, InterpolationError>
Interpolates a new state at the provided epochs given a slice of states.
Sourcefn export_params() -> Vec<StateParameter>
fn export_params() -> Vec<StateParameter>
List of state parameters that will be exported to a trajectory file in addition to the epoch (provided in this different formats).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.