Class PerlinNoise
Class for generating Perlin noise.
Inherited Members
Namespace: Genesis.Math
Assembly: Genesis.dll
Syntax
public class PerlinNoise
Constructors
PerlinNoise()
Declaration
public PerlinNoise()
Methods
GenerateNoise(float, float, float, int, int)
Generates Perlin noise at a specific point with specified parameters.
Declaration
public static float GenerateNoise(float x, float y, float persistence, int octaves, int seed)
Parameters
Type | Name | Description |
---|---|---|
float | x | The x-coordinate of the point. |
float | y | The y-coordinate of the point. |
float | persistence | The persistence value affecting the amplitude of octaves. |
int | octaves | The number of octaves to generate. |
int | seed | The seed value for the noise generation. |
Returns
Type | Description |
---|---|
float | The generated Perlin noise value at the specified point. |
GenerateNoiseMap(int, int, int)
Generates a 2D noise map with specified dimensions and seed.
Declaration
public List<NoisePoint> GenerateNoiseMap(int width, int height, int seed)
Parameters
Type | Name | Description |
---|---|---|
int | width | The width of the noise map. |
int | height | The height of the noise map. |
int | seed | The seed value for the noise generation. |
Returns
Type | Description |
---|---|
List<NoisePoint> | A list of NoisePoint objects representing the generated noise map. |