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) {
  assert(begin >= 0.0);
  assert(begin <= 1.0);
  assert(end >= 0.0);
  assert(end <= 1.0);
  assert(end >= begin);
  t = ((t - begin) / (end - begin)).clamp(0.0, 1.0);
  if (t == 0.0 || t == 1.0)
    return t;
  return curve.transform(t);
}