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
Afficher le fichier Open project: everbytes/LibNoise

Protected Properties

Свойство Type Description
_lowerBound float
_upperBound float

Méthodes publiques

Méthode 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 méthode

public Clamp ( )

Clamp() public méthode

public Clamp ( IModule source )
source IModule

Clamp() public méthode

public Clamp ( IModule source, float lower, float upper )
source IModule
lower float
upper float

GetValue() public méthode

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.
Résultat float

Property Details

_lowerBound protected_oe property

protected float _lowerBound
Résultat float

_upperBound protected_oe property

protected float _upperBound
Résultat float