outElastic

This function extents past 0 and 1 for values of t between 0 and 1
Parameters
- t:f32
- f32
Source
Implementation
pub fn outElastic(t: f32) f32 {
const p: f32 = 0.3;
return std.math.pow(f32, 2, -10 * t) * std.math.sin((t - p / 4) * (2 * std.math.pi) / p) + 1;
}