44 int a_SizeX,
int a_SizeY,
49 int ArrayCount = a_SizeX * a_SizeY;
51 a_Array, a_SizeX, a_SizeY,
55 for (
int i = 0; i < ArrayCount; i++)
57 a_Array[i] = std::abs(a_Array[i]);
65 int a_SizeX,
int a_SizeY,
int a_SizeZ,
71 int ArrayCount = a_SizeX * a_SizeY * a_SizeZ;
73 a_Array, a_SizeX, a_SizeY, a_SizeZ,
78 for (
int i = 0; i < ArrayCount; i++)
80 a_Array[i] = std::abs(a_Array[i]);
float NOISE_DATATYPE
The datatype used by all the noise generators.
void SetSeed(int a_Seed)
Sets the seed for the underlying noise.
cRidgedNoise(void)
Creates a new instance with the seed set to 0.
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.
cRidgedNoise(int a_Seed)
Creates a new instance with the specified seed.
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.