Chunks
Moddable voxel sandbox for room-scale VR.
Public Member Functions | Properties | List of all members
LibNoise.Operator.Terrace Class Reference

Provides a noise module that maps the output value from a source module onto a terrace-forming curve. [OPERATOR] More...

Inheritance diagram for LibNoise.Operator.Terrace:
LibNoise.ModuleBase

Public Member Functions

 Terrace ()
 Initializes a new instance of Terrace. More...
 
 Terrace (bool inverted, ModuleBase input)
 Initializes a new instance of Terrace. More...
 
void Add (double input)
 Adds a control point to the curve. More...
 
void Clear ()
 Clears the control points. More...
 
void Generate (int steps)
 Auto-generates a terrace curve. More...
 
override double GetValue (double x, double y, double z)
 Returns the output value for the given input coordinates. More...
 
- Public Member Functions inherited from LibNoise.ModuleBase
double GetValue (Vector3 coordinate)
 Returns the output value for the given input coordinates. More...
 
double GetValue (ref Vector3 coordinate)
 Returns the output value for the given input coordinates. More...
 
void Dispose ()
 Immediately releases the unmanaged resources used by this object. More...
 

Properties

int ControlPointCount [get]
 Gets the number of control points. More...
 
List< double > ControlPoints [get]
 Gets the list of control points. More...
 
bool IsInverted [get, set]
 Gets or sets a value whether the terrace curve is inverted. More...
 
- Properties inherited from LibNoise.ModuleBase
virtual ModuleBase this[int index] [get, set]
 Gets or sets a source module by index. More...
 
int SourceModuleCount [get]
 Gets the number of source modules required by this noise module. More...
 
bool IsDisposed [get]
 Gets a value whether the object is disposed. More...
 

Additional Inherited Members

- Protected Member Functions inherited from LibNoise.ModuleBase
 ModuleBase (int count)
 Initializes a new instance of Helpers. More...
 
virtual bool Disposing ()
 Immediately releases the unmanaged resources used by this object. More...
 
- Protected Attributes inherited from LibNoise.ModuleBase
ModuleBase[] m_modules = null
 

Detailed Description

Provides a noise module that maps the output value from a source module onto a terrace-forming curve. [OPERATOR]

Constructor & Destructor Documentation

LibNoise.Operator.Terrace.Terrace ( )

Initializes a new instance of Terrace.

LibNoise.Operator.Terrace.Terrace ( bool  inverted,
ModuleBase  input 
)

Initializes a new instance of Terrace.

Parameters
invertedIndicates whether the terrace curve is inverted.
inputThe input module.

Member Function Documentation

void LibNoise.Operator.Terrace.Add ( double  input)

Adds a control point to the curve.

Parameters
inputThe curves input value.
void LibNoise.Operator.Terrace.Clear ( )

Clears the control points.

void LibNoise.Operator.Terrace.Generate ( int  steps)

Auto-generates a terrace curve.

Parameters
stepsThe number of steps.
override double LibNoise.Operator.Terrace.GetValue ( double  x,
double  y,
double  z 
)
virtual

Returns the output value for the given input coordinates.

Parameters
xThe input coordinate on the x-axis.
yThe input coordinate on the y-axis.
zThe input coordinate on the z-axis.
Returns
The resulting output value.

Implements LibNoise.ModuleBase.

Property Documentation

int LibNoise.Operator.Terrace.ControlPointCount
get

Gets the number of control points.

List<double> LibNoise.Operator.Terrace.ControlPoints
get

Gets the list of control points.

bool LibNoise.Operator.Terrace.IsInverted
getset

Gets or sets a value whether the terrace curve is inverted.


The documentation for this class was generated from the following file: