Rebel Fork Framework
Urho3D::PerlinNoise Class Reference

Perlin noise generator. More...

#include <Urho3D/Math/PerlinNoise.h>

Public Member Functions

 PerlinNoise (RandomEngine &engine)
 Construct and initialize from random generator.
 
double GetDouble (double x, double y, double z, int repeat=NumPer) const
 Return noise value as double.
 
double GetDouble (double x, int repeat=NumPer) const
 Return noise value as double.
 
float Get (float x, float y, float z, int repeat=NumPer) const
 Return noise value as float.
 
float Get (float x, int repeat=NumPer) const
 Return noise value as float.
 

Static Public Attributes

static const unsigned NumPer = 256
 Number of permutations.
 

Private Member Functions

double Grad (int hash, double x, double y, double z) const
 Return random gradient.
 
double Grad (int hash, double x) const
 Return random gradient.
 

Static Private Member Functions

static double Fade (double t)
 Apply 5-th order smoothstep.
 
static int Inc (int coord, int repeat)
 Increment coordinate.
 

Private Attributes

ea::array< int, NumPer *2 > p_ {}
 Permutations.
 

Detailed Description

Perlin noise generator.


The documentation for this class was generated from the following files: