Core 1.0
Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
SimplexNoise Class Reference

Simplex noise functions. More...

#include <noise.h>

Inheritance diagram for SimplexNoise:
SimplexTurbulence

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.
 

Detailed Description

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:

See also
Noise

Member Function Documentation

◆ At()

double SimplexNoise::At ( const Vector p) const

Compute the simplex noise at a given point.

Parameters
pPoint.