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

Value 2D noise. More...

#include <gf/Noises.h>

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

Public Member Functions

 ValueNoise2D (Random &random, Step< double > step)
 Constructor. More...
 
virtual double getValue (double x, double y) override
 Take a 2D noise value. More...
 
- Public Member Functions inherited from gf::Noise2D
virtual ~Noise2D ()
 Virtual destructor. More...
 
double operator() (double x, double y)
 Take a 2D noise value. More...
 

Detailed Description

Value 2D noise.

Value noise is a lattice-based noise based on values.

Constructor & Destructor Documentation

gf::ValueNoise2D::ValueNoise2D ( Random random,
Step< double >  step 
)

Constructor.

Parameters
randomA random engine
stepA step
See also
gf::Step

Member Function Documentation

virtual double gf::ValueNoise2D::getValue ( double  x,
double  y 
)
overridevirtual

Take a 2D noise value.

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

Implements gf::Noise2D.