C# 클래스 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.
상속: NoiseMapBuilder
파일 보기 프로젝트 열기: everbytes/LibNoise 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

Build() 공개 메소드

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
리턴 void

NoiseMapBuilderSphere() 공개 메소드

Default constructor
public NoiseMapBuilderSphere ( ) : System
리턴 System

SetBounds() 공개 메소드

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
리턴 void