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
Afficher le fichier Open project: simonwittber/LibNoise-Unity Class Usage Examples

Méthodes publiques

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

Initializes a new instance of Clamp.
public Clamp ( ) : System
Résultat System

Clamp() public méthode

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

GetValue() public méthode

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