easeInOutBounce static method

double easeInOutBounce(
  1. double t
)

Bounce easing in/out.

Implementation

static double easeInOutBounce(double t) {
  return t < 0.5
      ? (1.0 - easeOutBounce(1.0 - 2.0 * t)) / 2.0
      : (1.0 + easeOutBounce(2.0 * t - 1.0)) / 2.0;
}