C# Class LibNoise.Unity.Operator.Clamp

Provides a noise module that clamps the output value from a source module to a range of values. [OPERATOR]
Inheritance: ModuleBase
Mostrar archivo Open project: Keshire/Unity-polygon-map-generation

Public Methods

Method Description
Clamp ( ) : System

Initializes a new instance of Clamp.

Clamp ( ModuleBase input ) : System

Initializes a new instance of Clamp.

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

Initializes a new instance of Clamp.

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

Returns the output value for the given input coordinates.

SetBounds ( double min, double max ) : void

Sets the bounds.

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 ( ModuleBase input ) : System
input ModuleBase The input module.
return System

Clamp() public method

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

GetValue() public method

Returns the output value for the given input coordinates.
public GetValue ( double x, double y, double z ) : double
x double The input coordinate on the x-axis.
y double The input coordinate on the y-axis.
z double The input coordinate on the z-axis.
return double

SetBounds() public method

Sets the bounds.
public SetBounds ( double min, double max ) : void
min double The minimum value.
max double The maximum value.
return void