C# Class LibNoise.Modifier.Clamp

Noise module that clamps the output value from a source module to a range of values. The range of values in which to clamp the output value is called the clamping range. If the output value from the source module is less than the lower bound of the clamping range, this noise module clamps that value to the lower bound. If the output value from the source module is greater than the upper bound of the clamping range, this noise module clamps that value to the upper bound.
Inheritance: ModifierModule, IModule3D
Show file Open project: everbytes/LibNoise

Protected Properties

Property Type Description
_lowerBound float
_upperBound float

Public Methods

Method Description
Clamp ( )
Clamp ( IModule source )
Clamp ( IModule source, float lower, float upper )
GetValue ( float x, float y, float z ) : float

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

Method Details

Clamp() public method

public Clamp ( )

Clamp() public method

public Clamp ( IModule source )
source IModule

Clamp() public method

public Clamp ( IModule source, float lower, float upper )
source IModule
lower float
upper 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

Property Details

_lowerBound protected property

protected float _lowerBound
return float

_upperBound protected property

protected float _upperBound
return float