Exemplo n.º 1
0
 public static float EaseInSine(float from, float to, float time, float duration)
 {
     return(to * (1 - TPMath.Cos(time / duration * (TPMath.PI / 2))) + from);
 }
Exemplo n.º 2
0
 public static float EaseInOutSine(float from, float to, float time, float duration)
 {
     return(to / 2 * (1 - TPMath.Cos(TPMath.PI * time / duration)) + from);
 }