Midnight Blue Game and Engine
Public Member Functions | Properties | List of all members
MidnightBlue.NoiseMap Class Reference

Generates a fractal 2D map using Simplex Noise More...

Collaboration diagram for MidnightBlue.NoiseMap:
Collaboration graph

Public Member Functions

 NoiseMap (ImplicitModuleBase fractal, int width, int height, int seed)
 Initializes a new instance of the T:MidnightBlue.NoiseMap class. Initializes the fractal generator to use Simplex Noise More...
 
 NoiseMap (ImplicitModuleBase fractal, int width, int height)
 Initializes a new instance of the T:MidnightBlue.NoiseMap class. Initializes the fractal generator to use Simplex Noise More...
 
double GetValue (int x, int y)
 Gets a noise value at the specified x and y coordinates. Returned as a normalized value in the range of 0 - 1 More...
 
void SetValue (int x, int y, double value)
 Sets a noise value at the specified x and y coordinates. Assigned as a normalized value in the range of 0 - 1 More...
 

Properties

int Width [get]
 Gets the width of the noise map. More...
 
int Height [get]
 Gets the height of the noise map. More...
 
double MaxValue [get]
 Gets the maximum value found in the currently generated noise map. More...
 
double MinValue [get]
 Gets the minimum value found in the currently generated noise map. More...
 
ImplicitModuleBase Map [get]
 Gets the internal map. More...
 

Detailed Description

Generates a fractal 2D map using Simplex Noise

Constructor & Destructor Documentation

§ NoiseMap() [1/2]

MidnightBlue.NoiseMap.NoiseMap ( ImplicitModuleBase  fractal,
int  width,
int  height,
int  seed 
)
inline

Initializes a new instance of the T:MidnightBlue.NoiseMap class. Initializes the fractal generator to use Simplex Noise

Parameters
widthWidth of the noise map.
heightHeight of the noise map.
seedSeed to use in generating the noise map.

§ NoiseMap() [2/2]

MidnightBlue.NoiseMap.NoiseMap ( ImplicitModuleBase  fractal,
int  width,
int  height 
)
inline

Initializes a new instance of the T:MidnightBlue.NoiseMap class. Initializes the fractal generator to use Simplex Noise

Parameters
widthWidth of the noise map.
heightHeight of the noise map.

Member Function Documentation

§ GetValue()

double MidnightBlue.NoiseMap.GetValue ( int  x,
int  y 
)
inline

Gets a noise value at the specified x and y coordinates. Returned as a normalized value in the range of 0 - 1

Returns
The noise value.
Parameters
xThe x coordinate.
yThe y coordinate.
Here is the caller graph for this function:

§ SetValue()

void MidnightBlue.NoiseMap.SetValue ( int  x,
int  y,
double  value 
)
inline

Sets a noise value at the specified x and y coordinates. Assigned as a normalized value in the range of 0 - 1

Returns
The noise value.
Parameters
xThe x coordinate.
yThe y coordinate.
Here is the caller graph for this function:

Property Documentation

§ Height

int MidnightBlue.NoiseMap.Height
get

Gets the height of the noise map.

The height.

§ Map

ImplicitModuleBase MidnightBlue.NoiseMap.Map
get

Gets the internal map.

The map.

§ MaxValue

double MidnightBlue.NoiseMap.MaxValue
get

Gets the maximum value found in the currently generated noise map.

The max value.

§ MinValue

double MidnightBlue.NoiseMap.MinValue
get

Gets the minimum value found in the currently generated noise map.

The max value.

§ Width

int MidnightBlue.NoiseMap.Width
get

Gets the width of the noise map.

The width.


The documentation for this class was generated from the following file: