Exemplo n.º 1
0
 /// <summary>
 /// Starts with a set of 4 bounces where the midpoint of the fourth one is in the midpoint of the ease
 /// and then continues as if starting from a middle of a bounce then does 3 more bounces that get progressively weaker.
 /// </summary>
 /// <param name="t">Time in the value between 0 and duration (inclusive)</param>
 /// <param name="from">Starting value from the ease</param>
 /// <param name="to">Target value to ease</param>
 /// <param name="duration">Duration of the ease</param>
 /// <returns>Eased value</returns>
 public static double BounceInOut(double t, double from, double to, double duration)
 {
     return(from + (to - from) * Easings.BounceInOut(t / duration));
 }