C# Class LibNoise.Operator.Cache

Provides a noise module that caches the last output value generated by a source module. [OPERATOR]
Inheritance: ModuleBase
Show file Open project: simonwittber/LibNoise-Unity Class Usage Examples

Public Methods

Method Description
Cache ( ) : System

Initializes a new instance of Cache.

Cache ( ModuleBase input ) : System

Initializes a new instance of Cache.

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

Returns the output value for the given input coordinates.

this ( int index ) : ModuleBase

Gets or sets a source module by index.

Method Details

Cache() public method

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

Cache() public method

Initializes a new instance of Cache.
public Cache ( ModuleBase input ) : System
input ModuleBase
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

this() public method

Gets or sets a source module by index.
public this ( int index ) : ModuleBase
index int The index of the source module to aquire.
return ModuleBase