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); }
public static double BackEaseOutIn(double t, double b, double c, double d) { if (t < d / 2.0) { return(DoubleEasing.BackEaseOut(t * 2.0, b, c / 2.0, d)); } return(DoubleEasing.BackEaseIn(t * 2.0 - d, b + c / 2.0, c / 2.0, d)); }
public static double BounceEaseIn(double t, double b, double c, double d) { return(c - DoubleEasing.BounceEaseOut(d - t, 0.0, c, d) + b); }