summaryrefslogtreecommitdiffstats
path: root/source/cNoise.inc
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-22 20:48:59 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-22 20:48:59 +0200
commitb29e9487f43838c2f43a2d022d1682b035eccd5c (patch)
tree44bf5399dbd408d0a8e990fc87a8d42771a9d872 /source/cNoise.inc
parentIgnore ChunkWorxSave.ini (diff)
downloadcuberite-b29e9487f43838c2f43a2d022d1682b035eccd5c.tar
cuberite-b29e9487f43838c2f43a2d022d1682b035eccd5c.tar.gz
cuberite-b29e9487f43838c2f43a2d022d1682b035eccd5c.tar.bz2
cuberite-b29e9487f43838c2f43a2d022d1682b035eccd5c.tar.lz
cuberite-b29e9487f43838c2f43a2d022d1682b035eccd5c.tar.xz
cuberite-b29e9487f43838c2f43a2d022d1682b035eccd5c.tar.zst
cuberite-b29e9487f43838c2f43a2d022d1682b035eccd5c.zip
Diffstat (limited to '')
-rw-r--r--source/cNoise.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/cNoise.inc b/source/cNoise.inc
index e80c1f268..60fd2f394 100644
--- a/source/cNoise.inc
+++ b/source/cNoise.inc
@@ -83,7 +83,7 @@ int cNoise::IntNoise3DInt( int a_X, int a_Y, int a_Z ) const
* Interpolation functions
**/
-float cNoise::CubicInterpolate( float a_A, float a_B, float a_C, float a_D, float a_Pct ) const
+float cNoise::CubicInterpolate( float a_A, float a_B, float a_C, float a_D, float a_Pct )
{
float P = (a_D - a_C) - (a_A - a_B);
float Q = (a_A - a_B) - P;
@@ -97,7 +97,7 @@ float cNoise::CubicInterpolate( float a_A, float a_B, float a_C, float a_D, floa
-float cNoise::CosineInterpolate( float a_A, float a_B, float a_Pct ) const
+float cNoise::CosineInterpolate( float a_A, float a_B, float a_Pct )
{
const float ft = a_Pct * 3.1415927f;
const float f = (1.f - cosf(ft)) * 0.5f;
@@ -108,7 +108,7 @@ float cNoise::CosineInterpolate( float a_A, float a_B, float a_Pct ) const
-float cNoise::LinearInterpolate( float a_A, float a_B, float a_Pct ) const
+float cNoise::LinearInterpolate( float a_A, float a_B, float a_Pct )
{
return a_A*(1.f-a_Pct) + a_B*a_Pct;
}