inOutCirc static method

double inOutCirc(
  1. double x
)

Implementation

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