C# Class LibNoise.Operator.Clamp

Provides a noise module that clamps the output value from a source module to a range of values. [OPERATOR]
Inheritance: ModuleBase
Mostra file Open project: simonwittber/LibNoise-Unity Class Usage Examples

Public Methods

Method Description
Clamp ( ) : System

Initializes a new instance of Clamp.

Clamp ( float min, float max, ModuleBase input ) : System

Initializes a new instance of Clamp.

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

Returns the output value for the given input coordinates.

Method Details

Clamp() public method

Initializes a new instance of Clamp.
public Clamp ( ) : System
return System

Clamp() public method

Initializes a new instance of Clamp.
public Clamp ( float min, float max, ModuleBase input ) : System
min float The minimum value.
max float The maximum value.
input ModuleBase The input module.
return System

GetValue() public method

Returns the output value for the given input coordinates.
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