easeInElastic static method

double easeInElastic(
  1. double t
)

Elastic easing in.

Implementation

static double easeInElastic(double t) {
  if (t == 0.0) return 0.0;
  if (t == 1.0) return 1.0;
  const c4 = (2.0 * math.pi) / 3.0;
  return -math.pow(2.0, 10.0 * t - 10.0) * math.sin((t * 10.0 - 10.75) * c4);
}