Generates a fractal 2D map using Simplex Noise
More...
|
| 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...
|
|
|
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...
|
|
Generates a fractal 2D map using Simplex Noise
§ 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
-
width | Width of the noise map. |
height | Height of the noise map. |
seed | Seed 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
-
width | Width of the noise map. |
height | Height of the noise map. |
§ 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
-
x | The x coordinate. |
y | The y coordinate. |
§ 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
-
x | The x coordinate. |
y | The y coordinate. |
§ 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:
- Shared/src/Game/Environment/NoiseMap.cs