#include <InterpolNoise.h>
|
| cInterpolNoise (int a_Seed) |
|
void | Generate2D (NOISE_DATATYPE *a_Array, int a_SizeX, int a_SizeY, NOISE_DATATYPE a_StartX, NOISE_DATATYPE a_EndX, NOISE_DATATYPE a_StartY, NOISE_DATATYPE a_EndY) const |
| Fills a 2D array with the values of the noise. More...
|
|
void | Generate3D (NOISE_DATATYPE *a_Array, int a_SizeX, int a_SizeY, int a_SizeZ, NOISE_DATATYPE a_StartX, NOISE_DATATYPE a_EndX, NOISE_DATATYPE a_StartY, NOISE_DATATYPE a_EndY, NOISE_DATATYPE a_StartZ, NOISE_DATATYPE a_EndZ) const |
| Fills a 3D array with the values of the noise. More...
|
|
void | SetSeed (int a_Seed) |
| Sets a new seed for the generators. More...
|
|
|
static const int | MAX_SIZE = 256 |
| Maximum size, for each direction, of the generated array. More...
|
|
template<typename T>
class cInterpolNoise< T >
Definition at line 316 of file InterpolNoise.h.
◆ cInterpolNoise()
◆ CalcFloorFrac()
Calculates the integral and fractional parts along one axis.
a_Floor will receive the integral parts (array of a_Size ints). a_Frac will receive the fractional parts (array of a_Size floats). a_Same will receive the counts of items that have the same integral parts (array of up to a_Size ints). a_NumSame will receive the count of a_Same elements (total count of different integral parts).
Definition at line 466 of file InterpolNoise.h.
◆ Generate2D()
Fills a 2D array with the values of the noise.
- Parameters
-
a_Array | Array to generate into [x + a_SizeX * y] |
a_SizeY | Count of the array, in each direction |
a_EndX | Noise-space coords of the array in the X direction |
a_EndY | Noise-space coords of the array in the Y direction |
Definition at line 336 of file InterpolNoise.h.
◆ Generate3D()
Fills a 3D array with the values of the noise.
- Parameters
-
a_Array | Array to generate into [x + a_SizeX * y + a_SizeX * a_SizeY * z] |
a_SizeZ | Count of the array, in each direction |
a_EndX | Noise-space coords of the array in the X direction |
a_EndY | Noise-space coords of the array in the Y direction |
a_EndZ | Noise-space coords of the array in the Z direction |
Definition at line 386 of file InterpolNoise.h.
◆ SetSeed()
Sets a new seed for the generators.
Relays the seed to the underlying noise.
Definition at line 329 of file InterpolNoise.h.
◆ m_Noise
The noise used for the underlying value generation.
Definition at line 458 of file InterpolNoise.h.
◆ MAX_SIZE
Maximum size, for each direction, of the generated array.
Definition at line 319 of file InterpolNoise.h.
The documentation for this class was generated from the following file: