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

Public Member Functions | |
| OpenSimplexNoise2D (Random &random) | |
| Constructor. More... | |
| double | getValue (double x, double y) override |
| Take a 2D noise value. More... | |
Public Member Functions inherited from gf::Noise2D | |
| virtual | ~Noise2D () |
| Virtual destructor. More... | |
| double | operator() (double x, double y) |
| Take a 2D noise value. More... | |
OpenSimplex 2D noise.
OpenSimplex noise is a lattice noise very similar to simplex noise.
| gf::OpenSimplexNoise2D::OpenSimplexNoise2D | ( | Random & | random | ) |
Constructor.
| random | A random engine |
|
overridevirtual |
Take a 2D noise value.
| x | The x coordinate of the noise value |
| y | The y coordinate of the noise value |
Implements gf::Noise2D.
1.8.13