Пример #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);
 }
Пример #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);
 }
Пример #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);
 }