Core 1.0
|
Simplex noise functions. More...
#include <noise.h>
Public Member Functions | |
SimplexNoise () | |
Empty. | |
~SimplexNoise () | |
Empty. | |
double | At (const Vector &) const |
Compute the simplex noise at a given point. More... | |
double | K () const |
Return the global Lipschitz constant of the noise. | |
Protected Member Functions | |
double | dot (const int *, const double &, const double &, const double &) const |
Scalar product. | |
Static Protected Attributes | |
static const int | grad3 [12][3] |
Array of gradients for 3D noise. | |
static const int | perm [512] |
Permutation table, 256 entries duplicated once to avoid modulo computations. | |
static const double | G3 = 1.0 / 6.0 |
Unskew factors for 3D case. | |
Simplex noise functions.
Simplex noise functions return random values in [-1,+1] interval.
The gradient for the 2D simplex noise are defined as:
The permutation table is defined as:
double SimplexNoise::At | ( | const Vector & | p | ) | const |
Compute the simplex noise at a given point.
p | Point. |