Example #1
0
 public static float SmoothLerp(float v1, float v2, float t)
 {
     return(FancyLerp(t, new float[] {
         CoreMath.Lerp(v1, v2, 0),
         CoreMath.Lerp(v1, v2, 0.5f),
         CoreMath.Lerp(v1, v2, 0.75f),
         CoreMath.Lerp(v1, v2, 0.875f),
         CoreMath.Lerp(v1, v2, 0.9375f),
         CoreMath.Lerp(v1, v2, 1)
     }));
 }