Lerp

Trait Lerp 

Source
pub trait Lerp<T> {
    // Required method
    fn lerp(a: Self, b: Self, t: T) -> Self;
}
Expand description

Trait for linear interpolation.

Required Methods§

Source

fn lerp(a: Self, b: Self, t: T) -> 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.

Implementors§

Source§

impl<N> Lerp<f32> for N
where N: Copy + Add<Output = N> + Sub<Output = N> + RawFrom<f32>, f32: RawFrom<N>,

Source§

impl<N> Lerp<f64> for N
where N: Copy + Add<Output = N> + Sub<Output = N> + RawFrom<f64>, f64: RawFrom<N>,