pub trait Sample: Copy + Default {
// Required methods
fn integrate(
&mut self,
velocity: &mut Self,
target: Self,
stiffness: f32,
damping: f32,
h: f32,
);
fn settled(self, target: Self, velocity: Self, rest: Rest) -> bool;
fn lerp(self, to: Self, t: f32) -> Self;
}Required Methods§
fn integrate( &mut self, velocity: &mut Self, target: Self, stiffness: f32, damping: f32, h: f32, )
fn settled(self, target: Self, velocity: Self, rest: Rest) -> bool
fn lerp(self, to: Self, t: f32) -> Self
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.