C# Class LibNoise.Operator.Curve

Provides a noise module that maps the output value from a source module onto an arbitrary function curve. [OPERATOR]
Inheritance: ModuleBase
Show file Open project: simonwittber/LibNoise-Unity Class Usage Examples

Public Methods

Method Description
Add ( float input, float output ) : void

Adds a control point to the curve.

Clear ( ) : void

Clears the control points.

Curve ( ) : System

Initializes a new instance of Curve.

Curve ( ModuleBase input ) : System

Initializes a new instance of Curve.

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

Returns the output value for the given input coordinates.

Method Details

Add() public method

Adds a control point to the curve.
public Add ( float input, float output ) : void
input float The curves input value.
output float The curves output value.
return void

Clear() public method

Clears the control points.
public Clear ( ) : void
return void

Curve() public method

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

Curve() public method

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