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

Simplex noise. More...

#include <gf/Noise.h>

Public Member Functions

 SimplexNoise (Random &random)
 Constructor. More...
 
double operator() (double x, double y) const
 Take a noise value. More...
 

Detailed Description

Simplex noise.

Simplex noise is a lattice noise based on gradients put on a simplex.

This implementation is limited to 2D noise and is not submitted to the patent that covers simplex noise.

See also
gf::GradientNoise

Constructor & Destructor Documentation

gf::SimplexNoise::SimplexNoise ( Random random)

Constructor.

Parameters
randomA random engine

Member Function Documentation

double gf::SimplexNoise::operator() ( double  x,
double  y 
) const

Take a noise value.

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