This class provides an implementation of Perlin noise for 2 variables. This code is loosely based on the reference implementation at https://mrl.nyu.edu/~perlin/noise/ .
explicit PerlinNoise2(double sx, double sy, int table_size = 256, unsigned long int seed = 0)
PerlinNoise2(PerlinNoise2 const ©)
Randomizes the tables to make a unique noise function. Uses a default scale (noise frequency), table size, and seed.
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.
Makes an exact copy of the existing
PerlinNoiseobject, including its random seed.
double noise(double x, double y) const
void set_scale(double scale)
void set_scale(double sx, double sy)