|
Core 1.0
|
Virtual infinite grid. More...
#include <voronoise.h>
Public Member Functions | |
| Vector2 | CellVertex (int, int) const |
| Compute a random point in a cell. | |
| Vector | CellVertex (int, int, int) const |
| Compute point in a cell. | |
Protected Member Functions | |
| 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. | |
Protected Attributes | |
| unsigned int | o = 0 |
| Random offset. | |
Static Protected Attributes | |
| static RandomFast | random |
| Fast random number generator. | |
Virtual infinite grid.
This class provides member for computing grid cells and local coordinates of points inside a cell.
| Vector2 InfiniteArray::CellVertex | ( | int | i, |
| int | j ) const |
Compute a random point in a cell.
| i,j | Integer coordinates of the cell. |
| Vector InfiniteArray::CellVertex | ( | int | i, |
| int | j, | ||
| int | k ) const |
Compute point in a cell.
| i,j,k | Integer coordinates of the cell. |
|
inlineprotected |
Compute the cubic cell coordinates.
| p | Point. |
| x,y,z | Returned integer coordinates. |
|
inlineprotected |
Compute the local coordinates inside a cubic cell.
| p | Point. |
| x,y,z | Returned integer coordinates. |
| u,v,w | Returned local coordinates. |
|
inlineprotected |
Compute the cubic cell coordinates.
| p | Point. |
| x,y | Returned integer coordinates. |
|
inlineprotected |
Compute the local coordinates inside a cubic cell.
| p | Point. |
| x,y | Returned integer coordinates. |
| u,v | Returned local coordinates. |