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

Gradient 2D noise. More...

#include <gf/Noises.h>

Inheritance diagram for gf::GradientNoise2D:
Inheritance graph

Public Member Functions

 GradientNoise2D (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

Gradient 2D noise.

Gradient noise is a lattice-based noise based on gradients.

Constructor & Destructor Documentation

◆ GradientNoise2D()

gf::GradientNoise2D::GradientNoise2D ( Random random,
Step< double >  step 


randomA random engine
stepA step
See also

Member Function Documentation

◆ getValue()

virtual double gf::GradientNoise2D::getValue ( double  x,
double  y 

Take a 2D noise value.

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

Implements gf::Noise2D.