C# Class LibNoise.Operator.Select

Provides a noise module that outputs the value selected from one of two source modules chosen by the output value from a control module. [OPERATOR]
Inheritance: ModuleBase
Exibir arquivo Open project: simonwittber/LibNoise-Unity Class Usage Examples

Public Methods

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

Returns the output value for the given input coordinates.

Select ( ) : System

Initializes a new instance of Select.

Select ( float min, float max, float fallOff, ModuleBase input1, ModuleBase input2, ModuleBase controller ) : System

Initializes a new instance of Select.

SetBounds ( float min, float max ) : void

Sets the bounds.

Method Details

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

Select() public method

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

Select() public method

Initializes a new instance of Select.
public Select ( float min, float max, float fallOff, ModuleBase input1, ModuleBase input2, ModuleBase controller ) : System
min float The minimum value.
max float The maximum value.
fallOff float The falloff value at the edge transition.
input1 ModuleBase The first input module.
input2 ModuleBase The second input module.
controller ModuleBase The controller of the operator.
return System

SetBounds() public method

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