DVUI

inOutExpo

curve

Parameters

#
t:f32
f32

Source

Implementation

#
pub fn inOutExpo(t: f32) f32 {
    if (t < 0.5) return inExpo(t * 2) / 2;
    return 1 - inExpo((1 - t) * 2) / 2;
}