public static double BounceEaseOutIn(double t, double b, double c, double d)
 {
     return(t < d / 2.0 ? PennerDoubleAnimation.BounceEaseOut(t * 2.0, b, c / 2.0, d) : PennerDoubleAnimation.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)
 {
     return(t < d / 2.0 ? PennerDoubleAnimation.BounceEaseIn(t * 2.0, 0.0, c, d) * 0.5 + b : PennerDoubleAnimation.BounceEaseOut(t * 2.0 - d, 0.0, c, d) * 0.5 + c * 0.5 + b);
 }