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
Afficher le fichier Open project: simonwittber/LibNoise-Unity Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

Clear() public méthode

Clears the control points.
public Clear ( ) : void
Résultat void

Generate() public méthode

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

GetValue() public méthode

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.
Résultat float

Terrace() public méthode

Initializes a new instance of Terrace.
public Terrace ( ) : System
Résultat System

Terrace() public méthode

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.
Résultat System