C# Class LibNoise.Primitive.Constant

Noise module that outputs a constant value. This noise module is not useful by itself, but it is often used as a source module for other noise modules.
Inheritance: PrimitiveModule, IModule4D, IModule3D, IModule2D, IModule1D
Mostra file Open project: everbytes/LibNoise Class Usage Examples

Protected Properties

Property Type Description
_constant float

Public Methods

Method Description
Constant ( )

Create a new noiws module with DEFAULT_VALUE

Constant ( float value )

Create a new noise module width given value

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.

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

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

Method Details

Constant() public method

Create a new noiws module with DEFAULT_VALUE
public Constant ( )

Constant() public method

Create a new noise module width given value
public Constant ( float value )
value float The value to use

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

GetValue() public method

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

Property Details

_constant protected_oe property

protected float _constant
return float