Trait Ease

Source
pub trait Ease {
Show 31 methods // Required methods fn calc(self, f: EaseFunction) -> Self; fn quadratic_in(self) -> Self; fn quadratic_out(self) -> Self; fn quadratic_in_out(self) -> Self; fn cubic_in(self) -> Self; fn cubic_out(self) -> Self; fn cubic_in_out(self) -> Self; fn quartic_in(self) -> Self; fn quartic_out(self) -> Self; fn quartic_in_out(self) -> Self; fn quintic_in(self) -> Self; fn quintic_out(self) -> Self; fn quintic_in_out(self) -> Self; fn sine_in(self) -> Self; fn sine_out(self) -> Self; fn sine_in_out(self) -> Self; fn circular_in(self) -> Self; fn circular_out(self) -> Self; fn circular_in_out(self) -> Self; fn exponential_in(self) -> Self; fn exponential_out(self) -> Self; fn exponential_in_out(self) -> Self; fn elastic_in(self) -> Self; fn elastic_out(self) -> Self; fn elastic_in_out(self) -> Self; fn back_in(self) -> Self; fn back_out(self) -> Self; fn back_in_out(self) -> Self; fn bounce_in(self) -> Self; fn bounce_out(self) -> Self; fn bounce_in_out(self) -> Self;
}

Required Methods§

Source

fn calc(self, f: EaseFunction) -> Self

Calculate the eased value, normalized

Source

fn quadratic_in(self) -> Self

Source

fn quadratic_out(self) -> Self

Source

fn quadratic_in_out(self) -> Self

Source

fn cubic_in(self) -> Self

Source

fn cubic_out(self) -> Self

Source

fn cubic_in_out(self) -> Self

Source

fn quartic_in(self) -> Self

Source

fn quartic_out(self) -> Self

Source

fn quartic_in_out(self) -> Self

Source

fn quintic_in(self) -> Self

Source

fn quintic_out(self) -> Self

Source

fn quintic_in_out(self) -> Self

Source

fn sine_in(self) -> Self

Source

fn sine_out(self) -> Self

Source

fn sine_in_out(self) -> Self

Source

fn circular_in(self) -> Self

Source

fn circular_out(self) -> Self

Source

fn circular_in_out(self) -> Self

Source

fn exponential_in(self) -> Self

Source

fn exponential_out(self) -> Self

Source

fn exponential_in_out(self) -> Self

Source

fn elastic_in(self) -> Self

Source

fn elastic_out(self) -> Self

Source

fn elastic_in_out(self) -> Self

Source

fn back_in(self) -> Self

Source

fn back_out(self) -> Self

Source

fn back_in_out(self) -> Self

Source

fn bounce_in(self) -> Self

Source

fn bounce_out(self) -> Self

Source

fn bounce_in_out(self) -> 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 Ease for f32

Source§

fn calc(self, f: EaseFunction) -> Self

Source§

fn quadratic_in(self) -> Self

Source§

fn quadratic_out(self) -> Self

Source§

fn quadratic_in_out(self) -> Self

Source§

fn cubic_in(self) -> Self

Source§

fn cubic_out(self) -> Self

Source§

fn cubic_in_out(self) -> Self

Source§

fn quartic_in(self) -> Self

Source§

fn quartic_out(self) -> Self

Source§

fn quartic_in_out(self) -> Self

Source§

fn quintic_in(self) -> Self

Source§

fn quintic_out(self) -> Self

Source§

fn quintic_in_out(self) -> Self

Source§

fn sine_in(self) -> Self

Source§

fn sine_out(self) -> Self

Source§

fn sine_in_out(self) -> Self

Source§

fn circular_in(self) -> Self

Source§

fn circular_out(self) -> Self

Source§

fn circular_in_out(self) -> Self

Source§

fn exponential_in(self) -> Self

Source§

fn exponential_out(self) -> Self

Source§

fn exponential_in_out(self) -> Self

Source§

fn elastic_in(self) -> Self

Source§

fn elastic_out(self) -> Self

Source§

fn elastic_in_out(self) -> Self

Source§

fn back_in(self) -> Self

Source§

fn back_out(self) -> Self

Source§

fn back_in_out(self) -> Self

Source§

fn bounce_in(self) -> Self

Source§

fn bounce_out(self) -> Self

Source§

fn bounce_in_out(self) -> Self

Source§

impl Ease for f64

Source§

fn calc(self, f: EaseFunction) -> Self

Source§

fn quadratic_in(self) -> Self

Source§

fn quadratic_out(self) -> Self

Source§

fn quadratic_in_out(self) -> Self

Source§

fn cubic_in(self) -> Self

Source§

fn cubic_out(self) -> Self

Source§

fn cubic_in_out(self) -> Self

Source§

fn quartic_in(self) -> Self

Source§

fn quartic_out(self) -> Self

Source§

fn quartic_in_out(self) -> Self

Source§

fn quintic_in(self) -> Self

Source§

fn quintic_out(self) -> Self

Source§

fn quintic_in_out(self) -> Self

Source§

fn sine_in(self) -> Self

Source§

fn sine_out(self) -> Self

Source§

fn sine_in_out(self) -> Self

Source§

fn circular_in(self) -> Self

Source§

fn circular_out(self) -> Self

Source§

fn circular_in_out(self) -> Self

Source§

fn exponential_in(self) -> Self

Source§

fn exponential_out(self) -> Self

Source§

fn exponential_in_out(self) -> Self

Source§

fn elastic_in(self) -> Self

Source§

fn elastic_out(self) -> Self

Source§

fn elastic_in_out(self) -> Self

Source§

fn back_in(self) -> Self

Source§

fn back_out(self) -> Self

Source§

fn back_in_out(self) -> Self

Source§

fn bounce_in(self) -> Self

Source§

fn bounce_out(self) -> Self

Source§

fn bounce_in_out(self) -> Self

Implementors§