Represents a class which pseudo-randomly scatters the clouds over the sky in form of the grid (for now)
More...
#include <Cloud2DPlacement.h>
Represents a class which pseudo-randomly scatters the clouds over the sky in form of the grid (for now)
- Todo:
- Add more variability and randomness, replace the grid for something else.
PseudoRand2DPlacement::PseudoRand2DPlacement |
( |
| ) |
|
|
inline |
void PseudoRand2DPlacement::GetRandPosition |
( |
int |
gridX, |
|
|
int |
gridY, |
|
|
int |
gridZ, |
|
|
int * |
posX, |
|
|
int * |
posY, |
|
|
int * |
posZ, |
|
|
int |
radius = 0 |
|
) |
| const |
Computes a pseudo random location for a cloud of a given radius and coordinates in the grid of clouds
- Parameters
-
[in] | gridX | X coordinate in cloud grid |
[in] | gridY | Y coordinate in cloud grid |
[in] | gridY | Y coordinate in cloud grid |
[out] | posX | Pseudo random X coordinate in cloud grid |
[out] | posY | Pseudo random Y coordinate in cloud grid |
[out] | posZ | Pseudo random Z coordinate in cloud grid |
[in] | radius | Radius of the cloud (optional, default = 0) |
float PseudoRand2DPlacement::Noise1D |
( |
int |
x, |
|
|
int |
y |
|
) |
| const |
Generates a noise value for the given x and y parameters
- Parameters
-
[in] | x | The x parameter |
[in] | y | The y parameter |
- Returns
- Noise value for the given parameters
void PseudoRand2DPlacement::SetGridUnitSizeXYZ |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
z |
|
) |
| |
Sets the grid unit size of all the axes
- Parameters
-
[in] | x | The x axis unit size |
[in] | y | The y axis unit size |
[in] | z | The z axis unit size |
int PseudoRand2DPlacement::gridUnitHalfSizeX |
int PseudoRand2DPlacement::gridUnitHalfSizeZ |
int PseudoRand2DPlacement::gridUnitSizeX |
int PseudoRand2DPlacement::gridUnitSizeY |
int PseudoRand2DPlacement::gridUnitSizeZ |
The documentation for this class was generated from the following files: