|
Core 1.0
|
Two-dimensional procedural noise computing the distance to the boundary of the Voronoi cells. More...
#include <voronoise.h>
Public Member Functions | |
| VoroNoise () | |
| Create a Voronoi noise. | |
| double | Value (const Vector2 &) const |
| Compute the noise at a given point. | |
Additional Inherited Members | |
| Protected Member Functions inherited from InfiniteArray | |
| InfiniteArray () | |
| Constructor. | |
| void | Square (const Vector2 &, int &, int &) const |
| Compute the cubic cell coordinates. | |
| void | Square (const Vector2 &, int &, int &, double &, double &) const |
| Compute the local coordinates inside a cubic cell. | |
| void | Square (const Vector &, int &, int &, int &) const |
| Compute the cubic cell coordinates. | |
| void | Square (const Vector &, int &, int &, int &, double &, double &, double &) const |
| Compute the local coordinates inside a cubic cell. | |
| Vector2 | CellVertex (int, int) const |
| Compute a random point in a cell. | |
| Vector | CellVertex (int, int, int) const |
| Compute a random point in a cell. | |
| Protected Attributes inherited from InfiniteArray | |
| unsigned int | o = 0 |
| Random offset. | |
| Static Protected Attributes inherited from InfiniteArray | |
| static Xoshiro256 | random |
| Fast random number generator. | |
Two-dimensional procedural noise computing the distance to the boundary of the Voronoi cells.
| double VoroNoise::Value | ( | const Vector2 & | p | ) | const |
Compute the noise at a given point.
The value is the distance from the point to the boundary of the Voronoi cell of its nearest seed, i.e., the smallest distance to the bisectors between this seed and the seeds of the neighbouring cells. This is not Worley noise, which is the distance to the nearest seed (see CellularNoise2).
| p | Point. |