C# Class LibNoise.Primitive.BevinsValue

Base class for all value noise generator module
Inheritance: PrimitiveModule, IModule3D, IModule2D, IModule1D
Show file Open project: everbytes/LibNoise Class Usage Examples

Public Methods

Method Description
BevinsValue ( )

0-args constructor.

BevinsValue ( int seed, NoiseQuality quality )

Create a new BevinsValueNoise with given values.

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.

ValueCoherentNoise1D ( float x, long seed, NoiseQuality quality ) : float

Generates a value-coherent-noise value from the coordinates of a one-dimensional input value. The return value ranges from -1.0 to +1.0.

ValueCoherentNoise2D ( float x, float y, long seed, NoiseQuality quality ) : float

Generates a value-coherent-noise value from the coordinates of a two-dimensional input value. The return value ranges from -1.0 to +1.0.

ValueCoherentNoise3D ( float x, float y, float z, long seed, NoiseQuality quality ) : float

Generates a value-coherent-noise value from the coordinates of a three-dimensional input value. The return value ranges from -1.0 to +1.0.

ValueNoise1D ( int x, long seed ) : float

Generates a value-noise value from the coordinates of a one-dimensional input value. The return value ranges from -1.0 to +1.0. A noise function differs from a random-number generator because it always returns the same output value if the same input value is passed to it.

ValueNoise2D ( int x, int y ) : float

Generates a value-noise value from the coordinates of a two-dimensional input value. The return value ranges from -1.0 to +1.0. it use ValueNoise2D(int x, int y, long seed) with a seed number of 0

ValueNoise2D ( int x, int y, long seed ) : float

Generates a value-noise value from the coordinates of a two-dimensional input value. The return value ranges from -1.0 to +1.0. A noise function differs from a random-number generator because it always returns the same output value if the same input value is passed to it.

ValueNoise3D ( int x, int y, int z, long seed ) : float

Generates a value-noise value from the coordinates of a three-dimensional input value. The return value ranges from -1.0 to +1.0. A noise function differs from a random-number generator because it always returns the same output value if the same input value is passed to it.

Private Methods

Method Description
IntValueNoise1D ( int x, long seed ) : int

Generates an integer-noise value from the coordinates of a one-dimensional input value. The return value ranges from 0 to 2147483647. A noise function differs from a random-number generator because it always returns the same output value if the same input value is passed to it.

IntValueNoise2D ( int x, int y, long seed ) : int

Generates an integer-noise value from the coordinates of a two-dimensional input value. The return value ranges from 0 to 2147483647. A noise function differs from a random-number generator because it always returns the same output value if the same input value is passed to it.

IntValueNoise3D ( int x, int y, int z, long seed ) : int

Generates an integer-noise value from the coordinates of a three-dimensional input value. The return value ranges from 0 to 2147483647. A noise function differs from a random-number generator because it always returns the same output value if the same input value is passed to it.

Method Details

BevinsValue() public method

0-args constructor.
public BevinsValue ( )

BevinsValue() public method

Create a new BevinsValueNoise with given values.
public BevinsValue ( int seed, NoiseQuality quality )
seed int Seed.
quality NoiseQuality Quality.

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

ValueCoherentNoise1D() public static method

Generates a value-coherent-noise value from the coordinates of a one-dimensional input value. The return value ranges from -1.0 to +1.0.
public static ValueCoherentNoise1D ( float x, long seed, NoiseQuality quality ) : float
x float The x coordinate of the input value
seed long The random number seed
quality NoiseQuality The quality of the coherent-noise
return float

ValueCoherentNoise2D() public method

Generates a value-coherent-noise value from the coordinates of a two-dimensional input value. The return value ranges from -1.0 to +1.0.
public ValueCoherentNoise2D ( float x, float y, long seed, NoiseQuality quality ) : float
x float The x coordinate of the input value
y float The y coordinate of the input value
seed long The random number seed
quality NoiseQuality The quality of the coherent-noise
return float

ValueCoherentNoise3D() public static method

Generates a value-coherent-noise value from the coordinates of a three-dimensional input value. The return value ranges from -1.0 to +1.0.
public static ValueCoherentNoise3D ( float x, float y, float z, long seed, NoiseQuality quality ) : float
x float The x coordinate of the input value
y float The y coordinate of the input value
z float The z coordinate of the input value
seed long The random number seed
quality NoiseQuality The quality of the coherent-noise
return float

ValueNoise1D() public static method

Generates a value-noise value from the coordinates of a one-dimensional input value. The return value ranges from -1.0 to +1.0. A noise function differs from a random-number generator because it always returns the same output value if the same input value is passed to it.
public static ValueNoise1D ( int x, long seed ) : float
x int The x coordinate of the input value
seed long A random number seed
return float

ValueNoise2D() public method

Generates a value-noise value from the coordinates of a two-dimensional input value. The return value ranges from -1.0 to +1.0. it use ValueNoise2D(int x, int y, long seed) with a seed number of 0
public ValueNoise2D ( int x, int y ) : float
x int The x coordinate of the input value
y int The y coordinate of the input value
return float

ValueNoise2D() public method

Generates a value-noise value from the coordinates of a two-dimensional input value. The return value ranges from -1.0 to +1.0. A noise function differs from a random-number generator because it always returns the same output value if the same input value is passed to it.
public ValueNoise2D ( int x, int y, long seed ) : float
x int The x coordinate of the input value
y int The y coordinate of the input value
seed long A random number seed
return float

ValueNoise3D() public static method

Generates a value-noise value from the coordinates of a three-dimensional input value. The return value ranges from -1.0 to +1.0. A noise function differs from a random-number generator because it always returns the same output value if the same input value is passed to it.
public static ValueNoise3D ( int x, int y, int z, long seed ) : float
x int The x coordinate of the input value
y int The y coordinate of the input value
z int The z coordinate of the input value
seed long A random number seed
return float