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

OpenSimplex3D noise. More...

#include <gf/Noises.h>

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

Public Member Functions

 OpenSimplexNoise3D (Random &random)
 Constructor. More...
 
virtual double getValue (double x, double y, double z) override
 Take a 3D noise value. More...
 
- Public Member Functions inherited from gf::Noise3D
virtual ~Noise3D ()
 Virtual destructor. More...
 
double operator() (double x, double y, double z)
 Take a 3D noise value. More...
 

Detailed Description

OpenSimplex3D noise.

OpenSimplex noise is a lattice noise very similar to simplex noise.

See also
gf::SimplexNoise

Constructor & Destructor Documentation

gf::OpenSimplexNoise3D::OpenSimplexNoise3D ( Random random)

Constructor.

Parameters
randomA random engine

Member Function Documentation

virtual double gf::OpenSimplexNoise3D::getValue ( double  x,
double  y,
double  z 
)
overridevirtual

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

Implements gf::Noise3D.