Interpolator

Trait Interpolator 

Source
pub trait Interpolator:
    Sized
    + Copy
    + PartialOrd {
    // Required method
    fn normalize(self, start: Self, end: Self) -> Self;
}
Expand description

Types that can be used as interpolator in splines.

An interpolator value is like the fabric on which control keys (and sampled values) live on.

Required Methods§

Source

fn normalize(self, start: Self, end: Self) -> Self

Normalize the interpolator.

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 normalize(self, start: Self, end: Self) -> Self

Source§

impl Interpolator for f64

Source§

fn normalize(self, start: Self, end: Self) -> Self

Implementors§