Gamedev Framework (gf)  0.3.0
A C++11 framework for 2D games
Public Member Functions | List of all members
gf::Noise3D Class Referenceabstract

3D A noise function More...

#include <gf/Noise.h>

Inheritance diagram for gf::Noise3D:
Inheritance graph
[legend]

Public Member Functions

virtual ~Noise3D ()
 Virtual destructor. More...
 
virtual double getValue (double x, double y, double z)=0
 Take a 3D noise value. More...
 
double operator() (double x, double y, double z)
 Take a 3D noise value. More...
 

Detailed Description

3D A noise function

Constructor & Destructor Documentation

virtual gf::Noise3D::~Noise3D ( )
virtual

Virtual destructor.

Member Function Documentation

virtual double gf::Noise3D::getValue ( double  x,
double  y,
double  z 
)
pure virtual

Take a 3D noise value.

Parameters
xThe x coordinate of the noise value
yThe y coordinate of the noise value
zThe z coordinate of the noise value
Returns
The noise value

Implemented in gf::WaveletNoise3D, gf::OpenSimplexNoise3D, gf::PerlinNoise3D, gf::FractalNoise3D, and gf::GradientNoise3D.

double gf::Noise3D::operator() ( double  x,
double  y,
double  z 
)
inline

Take a 3D noise value.

Parameters
xThe x coordinate of the noise value
yThe y coordinate of the noise value
zThe z coordinate of the noise value
Returns
The noise value