Exemple #1
0
 public static float Calc(float v)
 {
     if (v < 0.5f)
     {
         return(0.5f * InBounce.Bounce(v * 2f));
     }
     else
     {
         return(0.5f * OutBounce.Bounce(v * 2f - 1f) + 0.5f);
     }
 }
Exemple #2
0
 public float Function(float v)
 {
     if (v < 0.5f)
     {
         return(0.5f * InBounce.Bounce(v * 2f));
     }
     else
     {
         return(0.5f * OutBounce.Bounce(v * 2f - 1f) + 0.5f);
     }
 }
Exemple #3
0
 public static float Bounce(float v)
 {
     return(1 - OutBounce.Bounce(1 - v));
 }