Ease

Trait Ease 

Source
pub trait Ease {
    // Required method
    fn ease(p: f32, a: f32, b: f32) -> f32;
}
Expand description

§The Ease Function Interface.

Required Methods§

Source

fn ease(p: f32, a: f32, b: f32) -> f32

Computes the y-axis of the curve from a progress value.

§params.
pThe elapsed time.
aThe start.
bThe end.
§returns.

f32 — The progress of the y-axis value.

use eazy::ease;

ease(0.5 / 4.0, 0.0, 1.0);

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.

Implementors§