public static double QuintEaseOutIn(double t, double b, double c, double d) { if (t < d / 2) { return QuintEaseOut(t * 2, b, c / 2, d); } return QuintEaseIn((t * 2) - d, b + c / 2, c / 2, d); }