Beispiel #1
0
 public static float EaseInOutCirc(float from, float to, float time, float duration)
 {
     time /= duration;
     return((time / 2) < 1
         ? to / 2 * (1 - TPMath.Sqrt(1 - time * time)) + from
         : to / 2 * (TPMath.Sqrt(1 - (time -= 2) * time) + 1) + from);
 }
Beispiel #2
0
 public static float EaseOutCirc(float from, float to, float time, float duration)
 {
     time /= duration;
     return(to * TPMath.Sqrt(1 - (time - 1) * time) + from);
 }
Beispiel #3
0
 public static float EaseInCirc(float from, float to, float time, float duration)
 {
     time /= duration;
     return(to * (1 - TPMath.Sqrt(1 - time * time)) + from);
 }