Interpolation

Trait Interpolation 

Source
pub trait Interpolation<T> {
    // Required method
    fn lerp(self, rhs: Self, t: T) -> Self;
}

Required Methods§

Source

fn lerp(self, rhs: 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.

Implementations on Foreign Types§

Source§

impl Interpolation<f32> for f32

Source§

fn lerp(self, b: Self, t: f32) -> Self

Source§

impl Interpolation<f64> for f64

Source§

fn lerp(self, b: Self, t: Self) -> Self

Implementors§

Source§

impl<T> Interpolation<T> for Quat<T>
where T: Copy + One + Mul<Output = T> + Add<Output = T> + Sub<Output = T>,

Source§

impl<T> Interpolation<T> for Vec2<T>
where T: Copy + One + Mul<Output = T> + Add<Output = T> + Sub<Output = T>,

Source§

impl<T> Interpolation<T> for Vec3<T>
where T: Copy + One + Mul<Output = T> + Add<Output = T> + Sub<Output = T>,

Source§

impl<T> Interpolation<T> for Vec4<T>
where T: Copy + One + Mul<Output = T> + Add<Output = T> + Sub<Output = T>,