pub trait Clerpable {
// Required methods
fn delta_qucy(&self, to: Self, min: Self, max: Self) -> Self;
fn lerp_qucy(&self, to: Self, lerp: f32, min: Self, max: Self) -> Self;
fn glerp_qucy(
&mut self,
to: Self,
lerp: f32,
thresh: Self,
min: Self,
max: Self,
) -> bool;
}Required Methods§
Sourcefn delta_qucy(&self, to: Self, min: Self, max: Self) -> Self
fn delta_qucy(&self, to: Self, min: Self, max: Self) -> Self
get closest delta, whichever direction is closer
- assumes self and the target are inside range
Sourcefn lerp_qucy(&self, to: Self, lerp: f32, min: Self, max: Self) -> Self
fn lerp_qucy(&self, to: Self, lerp: f32, min: Self, max: Self) -> Self
lerp to a value, auto-choosing which direction is fastest
- assumes self and the target are inside range
Sourcefn glerp_qucy(
&mut self,
to: Self,
lerp: f32,
thresh: Self,
min: Self,
max: Self,
) -> bool
fn glerp_qucy( &mut self, to: Self, lerp: f32, thresh: Self, min: Self, max: Self, ) -> bool
lerp to a value, auto-choosing which direction is fastest, snaps to goal with using a threshold
- assumes self and the target are inside range
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.