Trait oddio::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]

Object Safety§

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§