elasticStep static method

double elasticStep(
  1. double t, [
  2. double s = 1.70158
])

Implementation

static double elasticStep(double t, [double s = 1.70158]) {
  if (t < 0.5) {
    return 0.5 * elasticStart(t * 2, s);
  } else {
    return 0.5 * elasticStop(t * 2 - 1, s) + 0.5;
  }
}