Enum anima_engine::math::Behavior [] [src]

pub enum Behavior {
    Linear,
    Acc,
    Dec,
    AccDec,
}

An enum containing useful interpolation techniques.

Variants

Linear

linear, i(t) = t

Acc

accelerate, i(t) = t²

Dec

decelerate, i(t) = 1 - (1 - t)²

AccDec

accelerate-decelerate, i(t) = cos((t + 1) π) / 2 + 0.5

Trait Implementations

Derived Implementations

impl PartialEq for Behavior

fn eq(&self, __arg_0: &Behavior) -> bool

fn ne(&self, __arg_0: &Behavior) -> bool

impl Debug for Behavior

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Copy for Behavior

impl Clone for Behavior

fn clone(&self) -> Behavior

1.0.0fn clone_from(&mut self, source: &Self)