Example #1
0
 public static float SmoothStartSpike2(float duration)
 {
     if (duration <= .5f)
     {
         return(SmoothStart.SmoothStart2(duration / 0.5f));
     }
     return(SmoothStart.SmoothStart2(GeneralEase.Flip(duration) / .5f));
 }
 //EaseInEaseOut functions
 public static float SmoothStart2SmoothStop2(float t)
 {
     return(Mathf.Lerp(SmoothStart.SmoothStart2(t), SmoothStop.SmoothStop2(t), t));
 }
Example #3
0
 public static float SmoothStop5(float t)
 {
     return(GeneralEase.Flip(SmoothStart.SmoothStart5(GeneralEase.Flip(t))));
 }