easeOutBounce static method
Bounce easing out.
Implementation
static double easeOutBounce(double t) {
const n1 = 7.5625;
const d1 = 2.75;
if (t < 1.0 / d1) {
return n1 * t * t;
} else if (t < 2.0 / d1) {
final t2 = t - 1.5 / d1;
return n1 * t2 * t2 + 0.75;
} else if (t < 2.5 / d1) {
final t2 = t - 2.25 / d1;
return n1 * t2 * t2 + 0.9375;
} else {
final t2 = t - 2.625 / d1;
return n1 * t2 * t2 + 0.984375;
}
}