C# Class LibNoise.Builder.NoiseMapBuilderSphere

Builds a spherical noise map. This class builds a noise map by filling it with coherent-noise values generated from the surface of a sphere. This class describes these input values using a (latitude, longitude) coordinate system. After generating the coherent-noise value from the input value, it then "flattens" these coordinates onto a plane so that it can write the values into a two-dimensional noise map. The sphere model has a radius of 1.0 unit. Its center is at the origin. The x coordinate in the noise map represents the longitude. The y coordinate in the noise map represents the latitude. The application must provide the southern, northern, western, and eastern bounds of the noise map, in degrees.
Inheritance: NoiseMapBuilder
Datei anzeigen Open project: everbytes/LibNoise Class Usage Examples

Public Methods

Method 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.

NoiseMapBuilderSphere ( ) : System

Default constructor

SetBounds ( float southLatBound, float northLatBound, float westLonBound, float eastLonBound ) : void

Sets the coordinate boundaries of the noise map. @pre The southern boundary is less than the northern boundary. @pre The western boundary is less than the eastern boundary.

Method Details

Build() public method

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
return void

NoiseMapBuilderSphere() public method

Default constructor
public NoiseMapBuilderSphere ( ) : System
return System

SetBounds() public method

Sets the coordinate boundaries of the noise map. @pre The southern boundary is less than the northern boundary. @pre The western boundary is less than the eastern boundary.
public SetBounds ( float southLatBound, float northLatBound, float westLonBound, float eastLonBound ) : void
southLatBound float
northLatBound float
westLonBound float
eastLonBound float
return void