inOutQuad static method

double inOutQuad(
  1. double x
)

Implementation

static double inOutQuad(double x) =>
    x < 0.5 ? 2 * x * x : 1 - pow(-2 * x + 2, 2) / 2;