a perlin noise engine
More...
#include <PerlinNoise.h>
List of all members.
Public Member Functions |
| PerlinNoise () |
| default ctor
|
| PerlinNoise (int _dimensions, int _seed=0) |
| ctor with dimensions and seed vars
|
void | init () |
| intialise the Perlin Noise engine
|
void | setSeed (const int _v) |
| set the RNG seed
|
void | setDimenstions (const int _v) |
| set the noise dimensions
|
Imath::V3f | noise (const Imath::V3f &_point) const |
| generate noise based on a XYZ point
|
Detailed Description
Constructor & Destructor Documentation
PerlinNoise::PerlinNoise |
( |
| ) |
|
PerlinNoise::PerlinNoise |
( |
int |
_dimensions, |
|
|
int |
_seed = 0 |
|
) |
| |
ctor with dimensions and seed vars
- Parameters:
-
[in] | _dimensions | how many dimensions to make noise in |
[in] | _seed | the RNG seed |
Member Function Documentation
void PerlinNoise::init |
( |
| ) |
|
intialise the Perlin Noise engine
Imath::V3f PerlinNoise::noise |
( |
const Imath::V3f & |
_point | ) |
const [inline] |
generate noise based on a XYZ point
- Parameters:
-
[in] | _point | the point to get noise for |
void PerlinNoise::setDimenstions |
( |
const int |
_v | ) |
[inline] |
set the noise dimensions
- Parameters:
-
[in] | _v | the value to set dimensions to |
void PerlinNoise::setSeed |
( |
const int |
_v | ) |
[inline] |
set the RNG seed
- Parameters:
-
[in] | _v | the value to set seed to |
The documentation for this class was generated from the following files: