C# Class LibNoise.Primitive.Spheres

Noise module that outputs concentric spheres. This noise module outputs concentric spheres centered on the origin like the concentric rings of an onion. The first sphere has a radius of 1.0. Each subsequent sphere has a radius that is 1.0 unit larger than the previous sphere. The output value from this noise module is determined by the distance between the input value and the the nearest spherical surface. The input values that are located on a spherical surface are given the output value 1.0 and the input values that are equidistant from two spherical surfaces are given the output value -1.0. An application can change the frequency of the concentric spheres. Increasing the frequency reduces the distances between spheres. This noise module, modified with some low-frequency, low-power turbulence, is useful for generating agate-like textures.
Inheritance: PrimitiveModule, IModule3D
ファイルを表示 Open project: everbytes/LibNoise Class Usage Examples

Protected Properties

Property Type Description
_frequency float

Public Methods

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

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

Spheres ( ) : System

Create new Spheres generator with default values

Spheres ( float frequency ) : System

Create a new Spheres generator with given values

Method Details

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

Spheres() public method

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

Spheres() public method

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

Property Details

_frequency protected_oe property

Frequency of the concentric cylinders.
protected float _frequency
return float