inOutExpo static method

double inOutExpo(
  1. double x
)

Implementation

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