C# Class LibNoise.Operator.Terrace

Provides a noise module that maps the output value from a source module onto a terrace-forming curve. [OPERATOR]
Inheritance: ModuleBase
Exibir arquivo Open project: simonwittber/LibNoise-Unity Class Usage Examples

Public Methods

Method Description
Add ( float input ) : void

Adds a control point to the curve.

Clear ( ) : void

Clears the control points.

Generate ( int steps ) : void

Auto-generates a terrace curve.

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

Returns the output value for the given input coordinates.

Terrace ( ) : System

Initializes a new instance of Terrace.

Terrace ( bool inverted, ModuleBase input ) : System

Initializes a new instance of Terrace.

Method Details

Add() public method

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

Clear() public method

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

Generate() public method

Auto-generates a terrace curve.
public Generate ( int steps ) : void
steps int The number of steps.
return void

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

Terrace() public method

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

Terrace() public method

Initializes a new instance of Terrace.
public Terrace ( bool inverted, ModuleBase input ) : System
inverted bool Indicates whether the terrace curve is inverted.
input ModuleBase The input module.
return System