Quadratic easing in/out.
static double easeInOutQuad(double t) => t < 0.5 ? 2.0 * t * t : 1.0 - math.pow(-2.0 * t + 2.0, 2) / 2.0;