This class provides an implementation of Perlin noise for 3 variables. More...
#include "perlinNoise3.h"
Public Member Functions | |
PerlinNoise3 () | |
Randomizes the tables to make a unique noise function. More... | |
PerlinNoise3 (double sx, double sy, double sz, int table_size=256, unsigned long seed=0) | |
Randomizes the tables to make a unique noise function. More... | |
PerlinNoise3 (const PerlinNoise3 ©) | |
Makes an exact copy of the existing PerlinNoise object, including its random seed. More... | |
double | noise (double x, double y, double z) const |
Returns the noise function of the three inputs. More... | |
float | noise (const LVecBase3f &value) const |
Returns the noise function of the three inputs. More... | |
double | noise (const LVecBase3d &value) const |
Returns the noise function of the three inputs. More... | |
double | operator() (double x, double y, double z) const |
Returns the noise function of the three inputs. More... | |
float | operator() (const LVecBase3f &value) const |
Returns the noise function of the three inputs. More... | |
double | operator() (const LVecBase3d &value) const |
Returns the noise function of the three inputs. More... | |
void | operator= (const PerlinNoise3 ©) |
Makes an exact copy of the existing PerlinNoise object, including its random seed. More... | |
void | set_scale (double scale) |
Changes the scale (frequency) of the noise. More... | |
void | set_scale (double sx, double sy, double sz) |
Changes the scale (frequency) of the noise. More... | |
void | set_scale (const LVecBase3f &scale) |
Changes the scale (frequency) of the noise. More... | |
void | set_scale (const LVecBase3d &scale) |
Changes the scale (frequency) of the noise. More... | |
Public Member Functions inherited from PerlinNoise | |
unsigned long | get_seed () |
Returns a unique seed value based on the seed value passed to this PerlinNoise object (and on its current state). More... | |
This class provides an implementation of Perlin noise for 3 variables.
This code is loosely based on the reference implementation at http://mrl.nyu.edu/~perlin/noise/ .
Definition at line 25 of file perlinNoise3.h.
|
inline |
Randomizes the tables to make a unique noise function.
Uses a default scale (noise frequency), table size, and seed.
Definition at line 19 of file perlinNoise3.I.
|
inlineexplicit |
Randomizes the tables to make a unique noise function.
If seed is nonzero, it is used to define the tables; if it is zero a random seed is generated.
Definition at line 33 of file perlinNoise3.I.
References set_scale().
|
inline |
Makes an exact copy of the existing PerlinNoise object, including its random seed.
Definition at line 46 of file perlinNoise3.I.
|
inline |
Returns the noise function of the three inputs.
Definition at line 100 of file perlinNoise3.I.
Referenced by noise(), and operator()().
|
inline |
Returns the noise function of the three inputs.
Definition at line 108 of file perlinNoise3.I.
References noise().
double PerlinNoise3::noise | ( | const LVecBase3d & | value | ) | const |
Returns the noise function of the three inputs.
Definition at line 21 of file perlinNoise3.cxx.
|
inline |
Returns the noise function of the three inputs.
Definition at line 116 of file perlinNoise3.I.
References noise().
|
inline |
Returns the noise function of the three inputs.
Definition at line 124 of file perlinNoise3.I.
References noise().
|
inline |
Returns the noise function of the three inputs.
Definition at line 132 of file perlinNoise3.I.
References noise().
|
inline |
Makes an exact copy of the existing PerlinNoise object, including its random seed.
Definition at line 58 of file perlinNoise3.I.
|
inline |
Changes the scale (frequency) of the noise.
Definition at line 68 of file perlinNoise3.I.
Referenced by PerlinNoise3(), and set_scale().
|
inline |
Changes the scale (frequency) of the noise.
Definition at line 76 of file perlinNoise3.I.
References set_scale().
|
inline |
Changes the scale (frequency) of the noise.
Definition at line 84 of file perlinNoise3.I.
References set_scale().
|
inline |
Changes the scale (frequency) of the noise.
Definition at line 92 of file perlinNoise3.I.