public static double BounceEaseOutIn(double t, double b, double c, double d) { if (t < d / 2.0) { return(DoubleEasing.BounceEaseOut(t * 2.0, b, c / 2.0, d)); } return(DoubleEasing.BounceEaseIn(t * 2.0 - d, b + c / 2.0, c / 2.0, d)); }
public static double BounceEaseInOut(double t, double b, double c, double d) { if (t < d / 2.0) { return(DoubleEasing.BounceEaseIn(t * 2.0, 0.0, c, d) * 0.5 + b); } return(DoubleEasing.BounceEaseOut(t * 2.0 - d, 0.0, c, d) * 0.5 + c * 0.5 + b); }