Trait Lerpable

Source
pub trait Lerpable {
    // Required method
    fn lerp(&self, to: Self, lerp: f32) -> Self;
}
Expand description

Any type that implemients necessary math traits for linear interpolation (lerp)

Required Methods§

Source

fn lerp(&self, to: Self, lerp: f32) -> Self

Perform linear interpolation

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.

Implementors§

Source§

impl<A> Lerpable for A
where A: Sub<Output = A> + Clone + Mul<f32, Output = A> + Add<Output = A>,