Gamedev Framework (gf)
0.3.0
A C++11 framework for 2D games
|
Wavelet 3D noise. More...
#include <gf/Noises.h>
Public Member Functions | |
WaveletNoise3D (Random &random, std::ptrdiff_t n=32) | |
Constructor. More... | |
virtual double | getValue (double x, double y, double z) override |
Take a 3D noise value. More... | |
Public Member Functions inherited from gf::Noise3D | |
virtual | ~Noise3D () |
Virtual destructor. More... | |
double | operator() (double x, double y, double z) |
Take a 3D noise value. More... | |
Wavelet 3D noise.
gf::WaveletNoise3D::WaveletNoise3D | ( | Random & | random, |
std::ptrdiff_t | n = 32 |
||
) |
Constructor.
random | A random engine |
n | Wavelet tile size |
|
overridevirtual |
Take a 3D noise value.
x | The x coordinate of the noise value |
y | The y coordinate of the noise value |
z | The z coordinate of the noise value |
Implements gf::Noise3D.