C# Class LibNoise.Builder.NoiseMapBuilderPlane

Builds a planar noise map. This class builds a noise map by filling it with coherent-noise values generated from the surface of a plane. This class describes these input values using (x, z) coordinates. Their y coordinates are always 0.0. The application must provide the lower and upper x coordinate bounds of the noise map, in units, and the lower and upper z coordinate bounds of the noise map, in units. To make a tileable noise map with no seams at the edges, use the Seamless property.
Inheritance: NoiseMapBuilder
Afficher le fichier Open project: everbytes/LibNoise Class Usage Examples

Méthodes publiques

Méthode Description
Build ( ) : void

Builds the noise map. @pre SetBounds() was previously called. @pre NoiseMap was previously defined. @pre a SourceModule was previously defined. @pre The width and height values specified by SetSize() are positive. @pre The width and height values specified by SetSize() do not exceed the maximum possible width and height for the noise map. @post The original contents of the destination noise map is destroyed. @throw noise::ArgumentException See the preconditions. If this method is successful, the destination noise map contains the coherent-noise values from the noise module specified by the SourceModule.

NoiseMapBuilderPlane ( ) : System

Default constructor

NoiseMapBuilderPlane ( float lowerXBound, float upperXBound, float lowerZBound, float upperZBound, bool seamless ) : System

Create a new plane with given value. @pre The lower x boundary is less than the upper x boundary. @pre The lower z boundary is less than the upper z boundary. @throw ArgumentException See the preconditions.

SetBounds ( float lowerXBound, float upperXBound, float lowerZBound, float upperZBound ) : void

Sets the boundaries of the planar noise map. @pre The lower x boundary is less than the upper x boundary. @pre The lower z boundary is less than the upper z boundary. @throw ArgumentException See the preconditions.

Method Details

Build() public méthode

Builds the noise map. @pre SetBounds() was previously called. @pre NoiseMap was previously defined. @pre a SourceModule was previously defined. @pre The width and height values specified by SetSize() are positive. @pre The width and height values specified by SetSize() do not exceed the maximum possible width and height for the noise map. @post The original contents of the destination noise map is destroyed. @throw noise::ArgumentException See the preconditions. If this method is successful, the destination noise map contains the coherent-noise values from the noise module specified by the SourceModule.
public Build ( ) : void
Résultat void

NoiseMapBuilderPlane() public méthode

Default constructor
public NoiseMapBuilderPlane ( ) : System
Résultat System

NoiseMapBuilderPlane() public méthode

Create a new plane with given value. @pre The lower x boundary is less than the upper x boundary. @pre The lower z boundary is less than the upper z boundary. @throw ArgumentException See the preconditions.
public NoiseMapBuilderPlane ( float lowerXBound, float upperXBound, float lowerZBound, float upperZBound, bool seamless ) : System
lowerXBound float The lower x boundary of the noise map, in units.
upperXBound float The upper x boundary of the noise map, in units.
lowerZBound float The lower z boundary of the noise map, in units.
upperZBound float The upper z boundary of the noise map, in units.
seamless bool a flag specifying whether seamless tiling is enabled.
Résultat System

SetBounds() public méthode

Sets the boundaries of the planar noise map. @pre The lower x boundary is less than the upper x boundary. @pre The lower z boundary is less than the upper z boundary. @throw ArgumentException See the preconditions.
public SetBounds ( float lowerXBound, float upperXBound, float lowerZBound, float upperZBound ) : void
lowerXBound float The lower x boundary of the noise map, in units.
upperXBound float The upper x boundary of the noise map, in units.
lowerZBound float The lower z boundary of the noise map, in units.
upperZBound float The upper z boundary of the noise map, in units.
Résultat void