Chunks
Moddable voxel sandbox for room-scale VR.
|
Provides a noise module that maps the output value from a source module onto an arbitrary function curve. [OPERATOR] More...
Public Member Functions | |
Curve () | |
Initializes a new instance of Curve. More... | |
Curve (ModuleBase input) | |
Initializes a new instance of Curve. More... | |
void | Add (double input, double output) |
Adds a control point to the curve. More... | |
void | Clear () |
Clears the control points. 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< KeyValuePair< double, double > > | ControlPoints [get] |
Gets the list of control points. 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 |
Provides a noise module that maps the output value from a source module onto an arbitrary function curve. [OPERATOR]
LibNoise.Operator.Curve.Curve | ( | ) |
Initializes a new instance of Curve.
LibNoise.Operator.Curve.Curve | ( | ModuleBase | input | ) |
Initializes a new instance of Curve.
input | The input module. |
void LibNoise.Operator.Curve.Add | ( | double | input, |
double | output | ||
) |
Adds a control point to the curve.
input | The curves input value. |
output | The curves output value. |
void LibNoise.Operator.Curve.Clear | ( | ) |
Clears the control points.
|
virtual |
Returns the output value for the given input coordinates.
x | The input coordinate on the x-axis. |
y | The input coordinate on the y-axis. |
z | The input coordinate on the z-axis. |
Implements LibNoise.ModuleBase.
|
get |
Gets the number of control points.
|
get |
Gets the list of control points.