public static double BounceEaseInOut1(double t, double b, double c, double d) { if (t < d * OneHalf) { return((BounceInValueEasingTests.BounceIn(t * 2d, 0d, c, d) * OneHalf) + b); } else { return((BounceOutValueEasingTests.BounceOut((t * 2d) - d, 0d, c, d) * OneHalf) + (c * OneHalf) + b); } }
public static double BounceOutIn1(double t, double b, double c, double d) { return((t < d * OneHalf) ? BounceOutValueEasingTests.BounceOut(t * 2d, b, c * OneHalf, d) : BounceInValueEasingTests.BounceIn((t * 2d) - d, b + (c * OneHalf), c * OneHalf, d)); }