inOutElastic

This function extents past 0 and 1 for values of t between 0 and 1
Parameters
- t:f32
- f32
Source
Implementation
pub fn inOutElastic(t: f32) f32 {
if (t < 0.5) return inElastic(t * 2) / 2;
return 1 - inElastic((1 - t) * 2) / 2;
}
This function extents past 0 and 1 for values of t between 0 and 1
Source
pub fn inOutElastic(t: f32) f32 {
if (t < 0.5) return inElastic(t * 2) / 2;
return 1 - inElastic((1 - t) * 2) / 2;
}