elasticOut static method

double elasticOut(
  1. double t
)

Implementation

static double elasticOut(double t) {
  const c4 = (2 * math.pi) / 3;
  if (t == 0 || t == 1) return t;
  return math.pow(2, -10 * t) * math.sin((t * 10 - .75) * c4) + 1;
}