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

2D A noise function More...

#include <gf/Noise.h>

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

Public Member Functions

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

Detailed Description

2D A noise function

Constructor & Destructor Documentation

virtual gf::Noise2D::~Noise2D ( )
virtual

Virtual destructor.

Member Function Documentation

virtual double gf::Noise2D::getValue ( double  x,
double  y 
)
pure virtual

Take a 2D noise value.

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

Implemented in gf::RidgedMultifractal2D, gf::HybridMultifractal2D, gf::HeteroTerrain2D, gf::Multifractal2D, gf::WorleyNoise2D, gf::OpenSimplexNoise2D, gf::SimplexNoise2D, gf::PerlinNoise2D, gf::FractalNoise2D, gf::BetterGradientNoise2D, gf::GradientNoise2D, and gf::ValueNoise2D.

double gf::Noise2D::operator() ( double  x,
double  y 
)
inline

Take a 2D noise value.

Parameters
xThe x coordinate of the noise value
yThe y coordinate of the noise value
Returns
The noise value
See also
getValue()