コード例 #1
0
ファイル: EaseSystem.cs プロジェクト: Prastiwar/TPFramework
 public static float EaseInSine(float from, float to, float time, float duration)
 {
     return(to * (1 - TPMath.Cos(time / duration * (TPMath.PI / 2))) + from);
 }
コード例 #2
0
ファイル: EaseSystem.cs プロジェクト: Prastiwar/TPFramework
 public static float EaseInOutSine(float from, float to, float time, float duration)
 {
     return(to / 2 * (1 - TPMath.Cos(TPMath.PI * time / duration)) + from);
 }