Particle Universe  1.2
ParticleUniverse::Noise3D Class Reference

#include <ParticleUniverseNoise.h>

Public Member Functions

 Noise3D (void)
 
virtual ~Noise3D (void)
 
void initialise (ushort octaves, double frequency=1.0, double amplitude=1.0, double persistence=1.0)
 
double noise (double x, double y, double z)
 
double noise (const Vector3 &position)
 
void noise2img (ushort dimension=255)
 

Protected Member Functions

double _noise (double x, double y, double z)
 
double _fade (double t)
 
double _lerp (double t, double a, double b)
 
double _grad (int hash, double x, double y, double z)
 

Protected Attributes

int p [512]
 
ushort mOctaves
 
double mFrequency
 
double mAmplitude
 
double mPersistence
 

Constructor & Destructor Documentation

ParticleUniverse::Noise3D::Noise3D ( void  )
virtual ParticleUniverse::Noise3D::~Noise3D ( void  )
virtual

Member Function Documentation

double ParticleUniverse::Noise3D::_fade ( double  t)
protected
double ParticleUniverse::Noise3D::_grad ( int  hash,
double  x,
double  y,
double  z 
)
protected
double ParticleUniverse::Noise3D::_lerp ( double  t,
double  a,
double  b 
)
protected
double ParticleUniverse::Noise3D::_noise ( double  x,
double  y,
double  z 
)
protected
void ParticleUniverse::Noise3D::initialise ( ushort  octaves,
double  frequency = 1.0,
double  amplitude = 1.0,
double  persistence = 1.0 
)
double ParticleUniverse::Noise3D::noise ( double  x,
double  y,
double  z 
)
double ParticleUniverse::Noise3D::noise ( const Vector3 position)
void ParticleUniverse::Noise3D::noise2img ( ushort  dimension = 255)

Member Data Documentation

double ParticleUniverse::Noise3D::mAmplitude
protected
double ParticleUniverse::Noise3D::mFrequency
protected
ushort ParticleUniverse::Noise3D::mOctaves
protected
double ParticleUniverse::Noise3D::mPersistence
protected
int ParticleUniverse::Noise3D::p[512]
protected

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