![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
OpenSimplex3D noise. More...
#include <gf/Noises.h>

Public Member Functions | |
| OpenSimplexNoise3D (Random &random, OpenSimplexType type=OpenSimplexType::Super, OpenSimplex3DVariant variant=OpenSimplex3DVariant::Classic) | |
| Constructor. More... | |
| 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... | |
| virtual double | getValue (double x, double y, double z)=0 |
| Take a 3D noise value. More... | |
| double | operator() (double x, double y, double z) |
| Take a 3D noise value. More... | |
OpenSimplex3D noise.
OpenSimplex noise is a lattice noise very similar to simplex noise.
| gf::OpenSimplexNoise3D::OpenSimplexNoise3D | ( | Random & | random, |
| OpenSimplexType | type = OpenSimplexType::Super, |
||
| OpenSimplex3DVariant | variant = OpenSimplex3DVariant::Classic |
||
| ) |
Constructor.
| random | A random engine |
|
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.