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

Provides a noise module that outputs Voronoi cells. [GENERATOR] More...

Inheritance diagram for LibNoise.Generator.Voronoi:
LibNoise.ModuleBase

Public Member Functions

 Voronoi ()
 Initializes a new instance of Voronoi. More...
 
 Voronoi (double frequency, double displacement, int seed, bool distance)
 Initializes a new instance of Voronoi. 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

double Displacement [get, set]
 Gets or sets the displacement value of the Voronoi cells. More...
 
double Frequency [get, set]
 Gets or sets the frequency of the seed points. More...
 
int Seed [get, set]
 Gets or sets the seed value used by the Voronoi cells. More...
 
bool UseDistance [get, set]
 Gets or sets a value whether the distance from the nearest seed point is applied to the output value. 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 outputs Voronoi cells. [GENERATOR]

Constructor & Destructor Documentation

LibNoise.Generator.Voronoi.Voronoi ( )

Initializes a new instance of Voronoi.

LibNoise.Generator.Voronoi.Voronoi ( double  frequency,
double  displacement,
int  seed,
bool  distance 
)

Initializes a new instance of Voronoi.

Parameters
frequencyThe frequency of the first octave.
displacementThe displacement of the ridged-multifractal noise.
seedThe seed of the ridged-multifractal noise.
distanceIndicates whether the distance from the nearest seed point is applied to the output value.

Member Function Documentation

override double LibNoise.Generator.Voronoi.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

double LibNoise.Generator.Voronoi.Displacement
getset

Gets or sets the displacement value of the Voronoi cells.

double LibNoise.Generator.Voronoi.Frequency
getset

Gets or sets the frequency of the seed points.

int LibNoise.Generator.Voronoi.Seed
getset

Gets or sets the seed value used by the Voronoi cells.

bool LibNoise.Generator.Voronoi.UseDistance
getset

Gets or sets a value whether the distance from the nearest seed point is applied to the output value.


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