simple-easing2 1.0.2

Set of simple easing functions
Documentation
/// <https://easings.net/#easeInExpo>
#[must_use]
#[inline(always)]
pub fn expo_in(t: f32) -> f32 {
    if t <= 0.0 {
        0.0
    } else {
        10.0f32.mul_add(t, -10.0).exp2()
    }
}

/// <https://easings.net/#easeOutExpo>
#[must_use]
#[inline(always)]
pub fn expo_out(t: f32) -> f32 {
    if 1.0 <= t {
        1.0
    } else {
        1.0 - (-10.0 * t).exp2()
    }
}

/// <https://easings.net/#easeInOutExpo>
#[must_use]
#[inline(always)]
pub fn expo_in_out(t: f32) -> f32 {
    if t <= 0.0 {
        0.0
    } else if 1.0 <= t {
        1.0
    } else if t < 0.5 {
        20.0f32.mul_add(t, -10.0).exp2() / 2.0
    } else {
        (2.0 - (-20.0f32).mul_add(t, 10.0).exp2()) / 2.0
    }
}