inOutCubic static method

double inOutCubic(
  1. double x
)

Implementation

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