DVUI

inOutBack

curve

This function extents past 0 and 1 for values of t between 0 and 1

Parameters

#
t:f32
f32

Source

Implementation

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