Skip to main content

EasingFunction

Trait EasingFunction 

Source
pub trait EasingFunction {
    // Required method
    fn apply(&self, t: f64) -> f64;
}
Expand description

Trait for applying easing functions

Required Methods§

Source

fn apply(&self, t: f64) -> f64

Apply easing to a normalized time value (0.0 to 1.0)

Implementors§