OGRE  1.10.12
Object-Oriented Graphics Rendering Engine
Ogre::Volume::SimplexNoise Class Reference

Simplex Noise ported from public domain Java Implementation http://webstaff.itn.liu.se/~stegu/simplexnoise/SimplexNoise.java Thanks Stefan Gustavson! More...

#include <OgreVolumeSimplexNoise.h>

Public Member Functions

 SimplexNoise (void)
 Constructor with a random permutation table. More...
 
 SimplexNoise (unsigned long definedSeed)
 Constructor with a by seed defined permutation table. More...
 
long getSeed (void) const
 Gets the current seed. More...
 
Real noise (Real xIn, Real yIn, Real zIn) const
 3D noise function. More...
 

Detailed Description

Simplex Noise ported from public domain Java Implementation http://webstaff.itn.liu.se/~stegu/simplexnoise/SimplexNoise.java Thanks Stefan Gustavson!

Constructor & Destructor Documentation

◆ SimplexNoise() [1/2]

Ogre::Volume::SimplexNoise::SimplexNoise ( void  )

Constructor with a random permutation table.

◆ SimplexNoise() [2/2]

Ogre::Volume::SimplexNoise::SimplexNoise ( unsigned long  definedSeed)

Constructor with a by seed defined permutation table.

Parameters
definedSeedThe seed to use.

Member Function Documentation

◆ noise()

Real Ogre::Volume::SimplexNoise::noise ( Real  xIn,
Real  yIn,
Real  zIn 
) const

3D noise function.

Parameters
xInThe first dimension parameter.
yInThe second dimension parameter.
zInThe third dimension parameter.
Returns
The noise value.

◆ getSeed()

long Ogre::Volume::SimplexNoise::getSeed ( void  ) const

Gets the current seed.

Returns
The current seed.

The documentation for this class was generated from the following file: