pub trait InterpolatableState: Clone {
#[must_use]
fn interpolate(&self, next: &Self, alpha: f32) -> Self;
fn copy_from_snapshot(&mut self, src: &Self) {
*self = src.clone();
}
fn interpolate_into(&self, next: &Self, alpha: f32, out: &mut Self) {
*out = self.interpolate(next, alpha);
}
}