Trait IsLerpingMethod

Source
pub trait IsLerpingMethod: Clone {
    // Required methods
    fn has_lerp_stepped(&self) -> bool;
    fn partial_lerp_pct(&self, i: usize, total: usize) -> f64;
    fn lerp_pct(&self) -> f64;
    fn with_lerp_pct(&self, pct: f64) -> Self;
}

Required Methods§

Source

fn has_lerp_stepped(&self) -> bool

Source

fn partial_lerp_pct(&self, i: usize, total: usize) -> f64

Source

fn lerp_pct(&self) -> f64

Source

fn with_lerp_pct(&self, pct: f64) -> 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 IsLerpingMethod for f32

Source§

fn has_lerp_stepped(&self) -> bool

Source§

fn lerp_pct(&self) -> f64

Source§

fn partial_lerp_pct(&self, i: usize, total: usize) -> f64

Source§

fn with_lerp_pct(&self, pct: f64) -> Self

Source§

impl IsLerpingMethod for f64

Source§

fn has_lerp_stepped(&self) -> bool

Source§

fn lerp_pct(&self) -> f64

Source§

fn partial_lerp_pct(&self, i: usize, total: usize) -> f64

Source§

fn with_lerp_pct(&self, pct: f64) -> Self

Implementors§