Class PerlinNoise
Perlin noise implementation.
Implements
Inherited Members
Namespace: TerraProc.Core.Noise
Assembly: TerraProc.Core.dll
Syntax
public class PerlinNoise : INoiseSource
Constructors
| Edit this page View SourcePerlinNoise(Seed)
Perlin noise implementation.
Declaration
public PerlinNoise(Seed seed)
Parameters
| Type | Name | Description |
|---|---|---|
| Seed | seed | Seed for the noise generation. |
Methods
| Edit this page View SourceSample(double, double)
Samples a noise value sample in the range of 0.0 to 1.0 for the given coordinates.
Declaration
public double Sample(double x, double y)
Parameters
| Type | Name | Description |
|---|---|---|
| double | x | |
| double | y |
Returns
| Type | Description |
|---|---|
| double | A noise value between 0.0 and 1.0 |