diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-22 20:48:59 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-22 20:48:59 +0200 |
commit | b29e9487f43838c2f43a2d022d1682b035eccd5c (patch) | |
tree | 44bf5399dbd408d0a8e990fc87a8d42771a9d872 /source/cNoise.h | |
parent | Ignore ChunkWorxSave.ini (diff) | |
download | cuberite-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.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/cNoise.h b/source/cNoise.h index ddee427ad..74c2cdd02 100644 --- a/source/cNoise.h +++ b/source/cNoise.h @@ -56,10 +56,12 @@ public: float CubicNoise3D( float a_X, float a_Y, float a_Z ) const; void SetSeed( unsigned int a_Seed ) { m_Seed = a_Seed; } + + __NOISE_INLINE__ static float CubicInterpolate( float a_A, float a_B, float a_C, float a_D, float a_Pct ); + __NOISE_INLINE__ static float CosineInterpolate( float a_A, float a_B, float a_Pct ); + __NOISE_INLINE__ static float LinearInterpolate( float a_A, float a_B, float a_Pct ); + private: - __NOISE_INLINE__ float CubicInterpolate( float a_A, float a_B, float a_C, float a_D, float a_Pct ) const; - __NOISE_INLINE__ float CosineInterpolate( float a_A, float a_B, float a_Pct ) const; - __NOISE_INLINE__ float LinearInterpolate( float a_A, float a_B, float a_Pct ) const; #if NOISE_USE_SSE __m128 CubicInterpolate4( const __m128 & a_A, const __m128 & a_B, const __m128 & a_C, const __m128 & a_D, float a_Pct ) const; |