Interpolator

Trait Interpolator 

Source
pub trait Interpolator {
    // Required method
    fn interpolate(start: &Self, end: &Self, t: f32) -> Self;
}

Required Methods§

Source

fn interpolate(start: &Self, end: &Self, t: f32) -> 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 Interpolator for f32

Source§

fn interpolate(start: &f32, end: &f32, t: f32) -> f32

Source§

impl Interpolator for i32

Source§

fn interpolate(start: &i32, end: &i32, t: f32) -> i32

Implementors§