Provides a two-dimensional noise map.
More...
|
| | Noise2D (int size) |
| | Initializes a new instance of Noise2D. More...
|
| |
| | Noise2D (int size, ModuleBase generator) |
| | Initializes a new instance of Noise2D. More...
|
| |
| | Noise2D (int width, int height) |
| | Initializes a new instance of Noise2D. More...
|
| |
| | Noise2D (int width, int height, ModuleBase generator) |
| | Initializes a new instance of Noise2D. More...
|
| |
| void | Clear () |
| | Clears the noise map. More...
|
| |
| void | Clear (float value) |
| | Clears the noise map. More...
|
| |
| void | GenerateCylindrical (double angleMin, double angleMax, double heightMin, double heightMax) |
| | Generates a cylindrical projection of the noise map. More...
|
| |
| void | GeneratePlanar (double left, double right, double top, double bottom) |
| | Generates a planar projection of the noise map. More...
|
| |
| void | GeneratePlanar (double left, double right, double top, double bottom, bool seamless) |
| | Generates a non-seamless planar projection of the noise map. More...
|
| |
| void | GenerateSpherical (double south, double north, double west, double east) |
| | Generates a spherical projection of the noise map. More...
|
| |
| Texture2D | GetNormalMap (float scale) |
| | Creates a normal map for the current content of the noise map. More...
|
| |
| Texture2D | GetTexture () |
| | Creates a grayscale texture map for the current content of the noise map. More...
|
| |
| Texture2D | GetTexture (Gradient gradient) |
| | Creates a texture map for the current content of the noise map. More...
|
| |
| Texture2D | GetTexture (ref Gradient gradient) |
| | Creates a texture map for the current content of the noise map. More...
|
| |
| void | Dispose () |
| | Immediately releases the unmanaged resources used by this object. More...
|
| |
|
| const double | South = -90.0 |
| |
| const double | North = 90.0 |
| |
| const double | West = -180.0 |
| |
| const double | East = 180.0 |
| |
| const double | AngleMin = -180.0 |
| |
| const double | AngleMax = 180.0 |
| |
| const double | Left = -1.0 |
| |
| const double | Right = 1.0 |
| |
| const double | Top = -1.0 |
| |
| const double | Bottom = 1.0 |
| |
Provides a two-dimensional noise map.
| LibNoise.Noise2D.Noise2D |
( |
| ) |
|
|
protected |
Initializes a new instance of Noise2D.
| LibNoise.Noise2D.Noise2D |
( |
int |
size | ) |
|
Initializes a new instance of Noise2D.
- Parameters
-
| size | The width and height of the noise map. |
| LibNoise.Noise2D.Noise2D |
( |
int |
size, |
|
|
ModuleBase |
generator |
|
) |
| |
Initializes a new instance of Noise2D.
- Parameters
-
| size | The width and height of the noise map. |
| generator | The generator module. |
| LibNoise.Noise2D.Noise2D |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
Initializes a new instance of Noise2D.
- Parameters
-
| width | The width of the noise map. |
| height | The height of the noise map. |
| LibNoise.Noise2D.Noise2D |
( |
int |
width, |
|
|
int |
height, |
|
|
ModuleBase |
generator |
|
) |
| |
Initializes a new instance of Noise2D.
- Parameters
-
| width | The width of the noise map. |
| height | The height of the noise map. |
| generator | The generator module. |
| void LibNoise.Noise2D.Clear |
( |
| ) |
|
| void LibNoise.Noise2D.Clear |
( |
float |
value | ) |
|
Clears the noise map.
- Parameters
-
| value | The constant value to clear the noise map with. |
| void LibNoise.Noise2D.Dispose |
( |
| ) |
|
Immediately releases the unmanaged resources used by this object.
| virtual bool LibNoise.Noise2D.Disposing |
( |
| ) |
|
|
protectedvirtual |
Immediately releases the unmanaged resources used by this object.
- Returns
- True if the object is completely disposed.
| void LibNoise.Noise2D.GenerateCylindrical |
( |
double |
angleMin, |
|
|
double |
angleMax, |
|
|
double |
heightMin, |
|
|
double |
heightMax |
|
) |
| |
Generates a cylindrical projection of the noise map.
- Parameters
-
| angleMin | The maximum angle of the clip region. |
| angleMax | The minimum angle of the clip region. |
| heightMin | The minimum height of the clip region. |
| heightMax | The maximum height of the clip region. |
| void LibNoise.Noise2D.GeneratePlanar |
( |
double |
left, |
|
|
double |
right, |
|
|
double |
top, |
|
|
double |
bottom |
|
) |
| |
Generates a planar projection of the noise map.
- Parameters
-
| left | The clip region to the left. |
| right | The clip region to the right. |
| top | The clip region to the top. |
| bottom | The clip region to the bottom. |
| void LibNoise.Noise2D.GeneratePlanar |
( |
double |
left, |
|
|
double |
right, |
|
|
double |
top, |
|
|
double |
bottom, |
|
|
bool |
seamless |
|
) |
| |
Generates a non-seamless planar projection of the noise map.
- Parameters
-
| left | The clip region to the left. |
| right | The clip region to the right. |
| top | The clip region to the top. |
| bottom | The clip region to the bottom. |
| seamless | Indicates whether the resulting noise map should be seamless. |
| void LibNoise.Noise2D.GenerateSpherical |
( |
double |
south, |
|
|
double |
north, |
|
|
double |
west, |
|
|
double |
east |
|
) |
| |
Generates a spherical projection of the noise map.
- Parameters
-
| south | The clip region to the south. |
| north | The clip region to the north. |
| west | The clip region to the west. |
| east | The clip region to the east. |
| Texture2D LibNoise.Noise2D.GetNormalMap |
( |
float |
scale | ) |
|
Creates a normal map for the current content of the noise map.
- Parameters
-
| scale | The scaling of the normal map values. |
- Returns
- The created normal map.
| Texture2D LibNoise.Noise2D.GetTexture |
( |
| ) |
|
Creates a grayscale texture map for the current content of the noise map.
- Returns
- The created texture map.
| Texture2D LibNoise.Noise2D.GetTexture |
( |
Gradient |
gradient | ) |
|
Creates a texture map for the current content of the noise map.
- Parameters
-
| gradient | The gradient to color the texture map with. |
- Returns
- The created texture map.
| Texture2D LibNoise.Noise2D.GetTexture |
( |
ref Gradient |
gradient | ) |
|
Creates a texture map for the current content of the noise map.
- Parameters
-
| gradient | The gradient to color the texture map with. |
- Returns
- The created texture map.
| const double LibNoise.Noise2D.AngleMax = 180.0 |
| const double LibNoise.Noise2D.AngleMin = -180.0 |
| const double LibNoise.Noise2D.Bottom = 1.0 |
| const double LibNoise.Noise2D.East = 180.0 |
| const double LibNoise.Noise2D.Left = -1.0 |
| const double LibNoise.Noise2D.North = 90.0 |
| const double LibNoise.Noise2D.Right = 1.0 |
| const double LibNoise.Noise2D.South = -90.0 |
| const double LibNoise.Noise2D.Top = -1.0 |
| const double LibNoise.Noise2D.West = -180.0 |
| float LibNoise.Noise2D.Border |
|
getset |
Gets or sets the constant value at the noise maps borders.
Gets or sets the generator module.
| int LibNoise.Noise2D.Height |
|
get |
Gets the height of the noise map.
| bool LibNoise.Noise2D.IsDisposed |
|
get |
Gets a value whether the object is disposed.
| float LibNoise.Noise2D.this[int x, int y] |
|
getset |
Gets or sets a value in the noise map by its position.
- Parameters
-
| x | The position on the x-axis. |
| y | The position on the y-axis. |
- Returns
- The corresponding value.
| int LibNoise.Noise2D.Width |
|
get |
Gets the width of the noise map.
The documentation for this class was generated from the following file: