Public Member Functions |
| | __init__ () |
| | Randomizes the tables to make a unique noise function.
|
| | __init__ (PerlinNoise2 const copy) |
| | Makes an exact copy of the existing PerlinNoise object, including its random seed.
|
| | __init__ (double sx, double sy, int table_size, unsigned long int seed) |
| | Randomizes the tables to make a unique noise function.
|
| | __init__ (double sx, double sy, int table_size) |
| | Randomizes the tables to make a unique noise function.
|
| | __init__ (double sx, double sy) |
| | Randomizes the tables to make a unique noise function.
|
| double | noise (LVecBase2d const value) |
| | Returns the noise function of the three inputs.
|
| float | noise (LVecBase2f const value) |
| | Returns the noise function of the three inputs.
|
| double | noise (double x, double y) |
| | Returns the noise function of the three inputs.
|
| double | operator() (LVecBase2d const value) |
| | Returns the noise function of the two inputs.
|
| float | operator() (LVecBase2f const value) |
| | Returns the noise function of the two inputs.
|
| double | operator() (double x, double y) |
| | Returns the noise function of the two inputs.
|
| PerlinNoise2 | operator= (PerlinNoise2 const copy) |
| | Makes an exact copy of the existing PerlinNoise object, including its random seed.
|
| | setScale (LVecBase2d const scale) |
| | Changes the scale (frequency) of the noise.
|
| | setScale (LVecBase2f const scale) |
| | Changes the scale (frequency) of the noise.
|
| | setScale (double scale) |
| | Changes the scale (frequency) of the noise.
|
| | setScale (double sx, double sy) |
| | Changes the scale (frequency) of the noise.
|
This class provides an implementation of Perlin noise for 2 variables.
This code is loosely based on the reference implementation at http://mrl.nyu.edu/~perlin/noise/ .