C# Class LibNoise.Primitive.ImprovedPerlin

Noise module that outputs 3-dimensional Improved Perlin noise. This noise module outputs values that usually range from -1.0 to +1.0, but there are no guarantees that all output values will exist within that range.
Inheritance: PrimitiveModule, IModule3D, IModule2D, IModule1D
Mostrar archivo Open project: everbytes/LibNoise Class Usage Examples

Public Methods

Method Description
GetValue ( float x ) : float

Generates an output value given the coordinates of the specified input value.

GetValue ( float x, float y ) : float

Generates an output value given the coordinates of the specified input value.

GetValue ( float x, float y, float z ) : float

Generates an output value given the coordinates of the specified input value.

ImprovedPerlin ( ) : System

0-args constructor

ImprovedPerlin ( int seed, NoiseQuality quality ) : System

Create a new ImprovedPerlin with given values

Private Methods

Method Description
Grad ( int hash, float x ) : float

Modifies the result by adding a directional bias

Grad ( int hash, float x, float y ) : float

Modifies the result by adding a directional bias

Grad ( int hash, float x, float y, float z ) : float

Modifies the result by adding a directional bias

Randomize ( int seed ) : void

Initializes the random values

Method Details

GetValue() public method

Generates an output value given the coordinates of the specified input value.
public GetValue ( float x ) : float
x float The input coordinate on the x-axis.
return float

GetValue() public method

Generates an output value given the coordinates of the specified input value.
public GetValue ( float x, float y ) : float
x float The input coordinate on the x-axis.
y float The input coordinate on the y-axis.
return float

GetValue() public method

Generates an output value given the coordinates of the specified input value.
public GetValue ( float x, float y, float z ) : float
x float The input coordinate on the x-axis.
y float The input coordinate on the y-axis.
z float The input coordinate on the z-axis.
return float

ImprovedPerlin() public method

0-args constructor
public ImprovedPerlin ( ) : System
return System

ImprovedPerlin() public method

Create a new ImprovedPerlin with given values
public ImprovedPerlin ( int seed, NoiseQuality quality ) : System
seed int
quality NoiseQuality
return System