![]() |
Gamedev Framework (gf)
0.1.0
A C++11 framework for 2D games
|
Perlin noise. More...
#include <gf/Noise.h>
Public Member Functions | |
| PerlinNoise (Random &random, double scale, std::size_t octaves=8) | |
| Constructor. More... | |
| double | operator() (double x, double y) const |
| Take a noise value. More... | |
Perlin noise.
Perlin noise is the combination of a fractal noise and a gradient noise.
| gf::PerlinNoise::PerlinNoise | ( | Random & | random, |
| double | scale, | ||
| std::size_t | octaves = 8 |
||
| ) |
Constructor.
| random | A random engine |
| scale | The scale factor |
| octaves | The number of octaves |
| double gf::PerlinNoise::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 |
1.8.8