Trait interpolation::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

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§