double easeInOut(double k) { if (k < 0.5) return easeIn(k * 2) * 0.5; return easeOut(k * 2 - 1) * 0.5 + 0.5; }