C# Class LibNoise.Modifier.ScaleBias

Noise module that applies a scaling factor and a bias to the output value from a source module. The GetValue() method retrieves the output value from the source module, multiplies it with a scaling factor, adds a bias to it, then outputs the value.
Inheritance: ModifierModule, IModule3D
显示文件 Open project: everbytes/LibNoise Class Usage Examples

Protected Properties

Property Type Description
_bias float
_scale float

Public Methods

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

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

ScaleBias ( )
ScaleBias ( IModule source )
ScaleBias ( IModule source, float scale, float bias )

Method Details

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

ScaleBias() public method

public ScaleBias ( )

ScaleBias() public method

public ScaleBias ( IModule source )
source IModule

ScaleBias() public method

public ScaleBias ( IModule source, float scale, float bias )
source IModule
scale float
bias float

Property Details

_bias protected_oe property

the bias to apply to the scaled output value from the source module.
protected float _bias
return float

_scale protected_oe property

the scaling factor to apply to the output value from the source module.
protected float _scale
return float