Trait Interpolate

Source
pub trait Interpolate {
    // Required methods
    fn interpolate(&self, other: &Self, t: f64) -> Self;
    fn interpolate_multi(&self, other: &Self, t: &Self) -> Self;
}

Required Methods§

Source

fn interpolate(&self, other: &Self, t: f64) -> Self

Linearly interpolates between self and other. For t = 0.0 this should return self. For t = 1.0 this should return other.

Source

fn interpolate_multi(&self, other: &Self, t: &Self) -> 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§