C# Class LibNoise.Modifier.Exponent

Noise module that maps the output value from a source module onto an exponential curve. Because most noise modules will output values that range from -1.0 to +1.0, this noise module first normalizes this output value (the range becomes 0.0 to 1.0), maps that value onto an exponential curve, then rescales that value back to the original range.
Inheritance: ModifierModule, IModule3D
Show file Open project: everbytes/LibNoise

Protected Properties

Property Type Description
_exponent float

Public Methods

Method Description
Exponent ( ) : System
Exponent ( IModule source ) : System
Exponent ( IModule source, float exponent ) : System
GetValue ( float x, float y, float z ) : float

Generates an output value given the coordinates of the specified input value.

Method Details

Exponent() public method

public Exponent ( ) : System
return System

Exponent() public method

public Exponent ( IModule source ) : System
source IModule
return System

Exponent() public method

public Exponent ( IModule source, float exponent ) : System
source IModule
exponent float
return System

GetValue() public method

Generates an output value given the coordinates of the specified input value.
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

Property Details

_exponent protected property

Exponent to apply to the output value from the source module.
protected float _exponent
return float