Trait Glerpable

Source
pub trait Glerpable {
    // Required method
    fn glerp(&mut self, to: Self, lerp: f32, thresh: Self) -> bool;
}
Expand description

Any type that implements necessary math traits for linear interpolation (lerp)

Required Methods§

Source

fn glerp(&mut self, to: Self, lerp: f32, thresh: Self) -> bool

Perform linear interpolation or snap to a threshold, true if ‘arrived’

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

Source§

fn glerp(&mut self, to: f32, lerp: f32, thresh: f32) -> bool

Source§

impl Glerpable for f64

Source§

fn glerp(&mut self, to: f64, lerp: f32, thresh: f64) -> bool

Source§

impl Glerpable for i8

Source§

fn glerp(&mut self, to: i8, lerp: f32, thresh: i8) -> bool

Source§

impl Glerpable for i16

Source§

fn glerp(&mut self, to: i16, lerp: f32, thresh: i16) -> bool

Source§

impl Glerpable for i32

Source§

fn glerp(&mut self, to: i32, lerp: f32, thresh: i32) -> bool

Source§

impl Glerpable for i64

Source§

fn glerp(&mut self, to: i64, lerp: f32, thresh: i64) -> bool

Source§

impl Glerpable for i128

Source§

fn glerp(&mut self, to: i128, lerp: f32, thresh: i128) -> bool

Source§

impl Glerpable for isize

Source§

fn glerp(&mut self, to: isize, lerp: f32, thresh: isize) -> bool

Implementors§