transformInternal method

  1. @override
double transformInternal (double t)
override

Returns the value of the curve at point t, in cases where 1.0 > t > 0.0.

Implementation

@override
double transformInternal(double t) {
  final double s = period / 4.0;
  t = t - 1.0;
  return -math.pow(2.0, 10.0 * t) * math.sin((t - s) * (math.pi * 2.0) / period);
}