Interpolate

Trait Interpolate 

Source
pub trait Interpolate {
    // Required method
    fn interpolate(&self, other: &Self, t: f32) -> Self;
}
Expand description

Types that can be linearly interpolated, for use with Smoothed

Required Methods§

Source

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

Interpolate between self and other by t, which should be in [0, 1]

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 Interpolate for f32

Source§

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

Implementors§