diff options
Diffstat (limited to 'source/cNoise.inc')
-rw-r--r-- | source/cNoise.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cNoise.inc b/source/cNoise.inc index a63bb0c2f..fd52fef37 100644 --- a/source/cNoise.inc +++ b/source/cNoise.inc @@ -36,7 +36,7 @@ float cNoise::CubicInterpolate( float a_A, float a_B, float a_C, float a_D, floa float R = a_C - a_A;
float S = a_B;
- return P*(a_Pct*a_Pct*a_Pct) + Q*(a_Pct*a_Pct) + R*a_Pct + S;
+ return ((P * a_Pct + Q) * a_Pct + R) * a_Pct + S;
}
float cNoise::CosineInterpolate( float a_A, float a_B, float a_Pct ) const
|