class PerlinNoise
Generates multi-octave, interpolated noise, also known as Perlin noise.
This object can be used alone, or it can be passed into the constructor of the Random class for more functionality.
Inheritance
class PerlinNoise : NoiseGenerator |
Constructors
PerlinNoise (const int, const float) | Constructs an instance of the perlin noise generator with the specified number of octaves and persistence. |
Methods
float Random (const float) | Returns a new random value from the given seed 'x'. |
float Random (const float, const float) | Returns a new random value from the given seeds 'x' and 'y'. |
Reference
method PerlinNoise (const int octaves, const float persistence) |
Constructs an instance of the perlin noise generator with the specified number of octaves and persistence. The persistence is clipped to a value between 0.0 and 1.0. Smaller persistence makes the noise more chaotic, higher values make it more regular ('wave like'). |
method float Random (const float x) |
Returns a new random value from the given seed 'x'. When using the same seed, the generator will always return the same random value. The return value range is -1.0 ~ 1.0. |
method float Random (const float x, const float y) |
Returns a new random value from the given seeds 'x' and 'y'. When using the same seed, the generator will always return the same random value. The return value range is -1.0 ~ 1.0. |