Gamedev Framework (gf)
0.1.0
A C++11 framework for 2D games
|
Simplex noise. More...
#include <gf/Noise.h>
Public Member Functions | |
SimplexNoise (Random &random) | |
Constructor. More... | |
double | operator() (double x, double y) const |
Take a noise value. More... | |
Simplex noise.
Simplex noise is a lattice noise based on gradients put on a simplex.
This implementation is limited to 2D noise and is not submitted to the patent that covers simplex noise.
gf::SimplexNoise::SimplexNoise | ( | Random & | random | ) |
Constructor.
random | A random engine |
double gf::SimplexNoise::operator() | ( | double | x, |
double | y | ||
) | const |
Take a noise value.
x | The x coordinate of the noise value |
y | The y coordinate of the noise value |