C# Class LibNoise.Primitive.Cylinders

Noise module that outputs concentric cylinders. This noise module outputs concentric cylinders centered on the origin. These cylinders are oriented along the y axis similar to the concentric rings of a tree. Each cylinder extends infinitely along the y axis. The first cylinder has a radius of 1.0. Each subsequent cylinder has a radius that is 1.0 unit larger than the previous cylinder. The output value from this noise module is determined by the distance between the input value and the the nearest cylinder surface. The input values that are located on a cylinder surface are given the output value 1.0 and the input values that are equidistant from two cylinder surfaces are given the output value -1.0. An application can change the frequency of the concentric cylinders. Increasing the frequency reduces the distances between cylinders. This noise module, modified with some low-frequency, low-power turbulence, is useful for generating wood-like textures.
Inheritance: PrimitiveModule, IModule3D
Mostra file Open project: everbytes/LibNoise Class Usage Examples

Protected Properties

Property Type Description
_frequency float

Public Methods

Method Description
Cylinders ( ) : System

Create new Cylinders generator with default values

Cylinders ( float frequency ) : System

Create a new Cylinders generator with given values

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

Generates an output value given the coordinates of the specified input value.

Method Details

Cylinders() public method

Create new Cylinders generator with default values
public Cylinders ( ) : System
return System

Cylinders() public method

Create a new Cylinders generator with given values
public Cylinders ( float frequency ) : System
frequency float
return System

GetValue() public method

Generates an output value given the coordinates of the specified input value.
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

Property Details

_frequency protected_oe property

Frequency of the concentric cylinders.
protected float _frequency
return float