Skip to main content

AnimationCurve

Trait AnimationCurve 

Source
pub trait AnimationCurve:
    Send
    + Sync
    + Debug {
    // Required method
    fn eval(&self, t: f32) -> f32;
}
Expand description

Trait implemented by every curve variant.

eval accepts any t and internally saturates it into [0, 1].

Required Methods§

Source

fn eval(&self, t: f32) -> f32

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§