Commonly used state initializations.
More...
|
| namespace | Objects |
| | Some predefined objects of Conway's Game of Life.
|
| |
|
| template<typename T > |
| void | normal (T *array, const unsigned int h, const unsigned int w) |
| | Fills the kernel with values between [0, 1].
|
| |
| template<typename T > |
| void | binary (T *array, const unsigned int h, const unsigned int w) |
| | Fills the kernel with either 0 or 1.
|
| |
Commonly used state initializations.
◆ binary()
template<typename T >
| void CellularAutomata::States::binary |
( |
T * |
array, |
|
|
const unsigned int |
h, |
|
|
const unsigned int |
w |
|
) |
| |
Fills the kernel with either 0 or 1.
- Template Parameters
-
- Parameters
-
| array | current state array |
| h | state height |
| w | state width |
◆ normal()
template<typename T >
| void CellularAutomata::States::normal |
( |
T * |
array, |
|
|
const unsigned int |
h, |
|
|
const unsigned int |
w |
|
) |
| |
Fills the kernel with values between [0, 1].
- Template Parameters
-
- Parameters
-
| array | current state array |
| h | state height |
| w | state width |