Example #1
0
 protected override float transformInternal(float t)
 {
     if (t < 0.5f)
     {
         return((1.0f - Curves._bounce(1.0f - t)) * 0.5f);
     }
     else
     {
         return(Curves._bounce(t * 2.0f - 1.0f) * 0.5f + 0.5f);
     }
 }
Example #2
0
 public override double transform(double t)
 {
     D.assert(t >= 0.0 && t <= 1.0);
     if (t < 0.5)
     {
         return((1.0 - Curves._bounce(1.0 - t)) * 0.5);
     }
     else
     {
         return(Curves._bounce(t * 2.0 - 1.0) * 0.5 + 0.5);
     }
 }
Example #3
0
 public override float transform(float t)
 {
     D.assert(t >= 0.0 && t <= 1.0f);
     if (t < 0.5f)
     {
         return((1.0f - Curves._bounce(1.0f - t)) * 0.5f);
     }
     else
     {
         return(Curves._bounce(t * 2.0f - 1.0f) * 0.5f + 0.5f);
     }
 }
Example #4
0
 public override double transform(double t)
 {
     D.assert(t >= 0.0 && t <= 1.0);
     return(Curves._bounce(t));
 }
Example #5
0
 public override float transform(float t)
 {
     D.assert(t >= 0.0f && t <= 1.0f);
     return(Curves._bounce(t));
 }
Example #6
0
 public override float transform(float t)
 {
     D.assert(t >= 0.0 && t <= 1.0);
     return(1.0f - Curves._bounce(1.0f - t));
 }
Example #7
0
 protected override float transformInternal(float t)
 {
     return(Curves._bounce(t));
 }