Perlin noise generator.
More...
#include <Urho3D/Math/PerlinNoise.h>
|
| PerlinNoise (RandomEngine &engine) |
| Construct and initialize from random generator.
|
|
double | GetDouble (double x, double y, double z, int repeat=NumPer) const |
| Return noise value as double.
|
|
double | GetDouble (double x, int repeat=NumPer) const |
| Return noise value as double.
|
|
float | Get (float x, float y, float z, int repeat=NumPer) const |
| Return noise value as float.
|
|
float | Get (float x, int repeat=NumPer) const |
| Return noise value as float.
|
|
|
static const unsigned | NumPer = 256 |
| Number of permutations.
|
|
|
double | Grad (int hash, double x, double y, double z) const |
| Return random gradient.
|
|
double | Grad (int hash, double x) const |
| Return random gradient.
|
|
|
static double | Fade (double t) |
| Apply 5-th order smoothstep.
|
|
static int | Inc (int coord, int repeat) |
| Increment coordinate.
|
|
|
ea::array< int, NumPer *2 > | p_ {} |
| Permutations.
|
|
The documentation for this class was generated from the following files:
- Urho3D/Math/PerlinNoise.h
- Urho3D/Math/PerlinNoise.cpp