Core 1.0
|
Simplex noise functions. More...
#include <noise.h>
Public Member Functions | |
SimplexNoise4 () | |
Empty. | |
~SimplexNoise4 () | |
Empty. | |
double | Value (const Vector &, const double &) const |
Compute the simplex noise at a given point and time. | |
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 double &) const |
Scalar product. | |
Static Protected Attributes | |
static const int | grad4 [32][4] |
Array of gradients for 4D noise. | |
static const int | perm [512] |
Permutation table, 256 entries duplicated once to avoid modulo computations. | |
static const int | simplex [64][4] |
Simplex data for 4D noise. | |
static const double | G4 = (5.0 - sqrt(5.0)) / 20.0 |
Unskew factors for 3D case. | |
Simplex noise functions.
Simplex noise functions return random values in [-1,+1] interval.
double SimplexNoise4::Value | ( | const Vector & | p, |
const double & | w ) const |
Compute the simplex noise at a given point and time.
p | Point. |
w | Time. |