C# Class LibNoise.Primitive.SimplexPerlin

Noise module that outputs 3-dimensional Simplex Perlin noise. This algorithm has a computational cost of O(n+1) where n is the dimension. It's a lost faster than ImprovedPerlin (O(2^n)) Quality is not used here. 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: ImprovedPerlin, IModule4D, IModule3D, IModule2D
Mostra file Open project: everbytes/LibNoise Class Usage Examples

Public Methods

Method Description
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.

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

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

SimplexPerlin ( )

0-args constructor

SimplexPerlin ( int seed, NoiseQuality quality )

Create a new ImprovedPerlin with given values

Protected Methods

Method Description
Dot ( int g, float x, float y ) : float

Computes dot product in 2D.

Dot ( int g, float x, float y, float z ) : float

Computes dot product in 3D.

Dot ( int g, float x, float y, float z, float t ) : float

Computes dot product in 4D.

Method Details

Dot() protected static method

Computes dot product in 2D.
protected static Dot ( int g, float x, float y ) : float
g int 2-vector (grid offset).
x float X coordinates.
y float Y coordinates.
return float

Dot() protected static method

Computes dot product in 3D.
protected static Dot ( int g, float x, float y, float z ) : float
g int 3-vector (grid offset).
x float X coordinates.
y float Y coordinates.
z float Z coordinates.
return float

Dot() protected static method

Computes dot product in 4D.
protected static Dot ( int g, float x, float y, float z, float t ) : float
g int 4-vector (grid offset).
x float X coordinates.
y float Y coordinates.
z float Z coordinates.
t float T coordinates.
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

GetValue() public method

Generates an output value given the coordinates of the specified input value.
public GetValue ( float x, float y, float z, float w ) : 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.
w float The input coordinate on the w-axis.
return float

SimplexPerlin() public method

0-args constructor
public SimplexPerlin ( )

SimplexPerlin() public method

Create a new ImprovedPerlin with given values
public SimplexPerlin ( int seed, NoiseQuality quality )
seed int
quality NoiseQuality