Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cRandomPerlin4096 Class Reference

#include <cRandomPerlin.h>

Inheritance diagram for GrayLib::cRandomPerlin4096:
GrayLib::cRandomPerlinBase

Public Member Functions

 cRandomPerlin4096 (cRandomFloat &rnd)
 
float GetNoise1D (const float x)
 
float GetNoise2D (const float x, const float y)
 
float GetNoise3D (const float x, const float y, const float z)
 
float turbulence2 (const float x, const float y, float freq)
 
float turbulence3 (const float x, const float y, const float z, float freq)
 
float tileableNoise1 (const float x, const float w)
 
float tileableNoise2 (const float x, const float y, const float w, const float h)
 
float tileableNoise3 (const float x, const float y, const float z, const float w, const float h, const float d)
 
float tileableTurbulence2 (const float x, const float y, const float w, const float h, float freq)
 
float tileableTurbulence3 (const float x, const float y, const float z, const float w, const float h, const float d, float freq)
 
void InitPerlinTables ()
 
- Public Member Functions inherited from GrayLib::cRandomPerlinBase
 UNITTEST2_PREDEF (cRandomPerlin)
 

Additional Inherited Members

- Static Public Member Functions inherited from GrayLib::cRandomPerlinBase
static void normalize2 (float v[2])
 
static void normalize3 (float v[3])
 
- Protected Member Functions inherited from GrayLib::cRandomPerlinBase
 cRandomPerlinBase (cRandomFloat &rnd)
 
float GRAYCALL SCurve (float a)
 
float GRAYCALL LinearInterpolation (float t, float a, float b)
 
float GRAYCALL RandomFloat ()
 
void GRAYCALL Setup (float i, int &b0, int &b1, float &r0, float &r1)
 
- Protected Attributes inherited from GrayLib::cRandomPerlinBase
cRandomFloatm_rnd
 

Detailed Description

Perlin Noise. Allow me to plug in a new cRandomBase ?? noise functions over 1, 2, and 3 dimensions

Constructor & Destructor Documentation

◆ cRandomPerlin4096()

GrayLib::cRandomPerlin4096::cRandomPerlin4096 ( cRandomFloat rnd)

Member Function Documentation

◆ GetNoise1D()

float GrayLib::cRandomPerlin4096::GetNoise1D ( const float  x)

Assume InitPerlinTables() already called.

◆ GetNoise2D()

float GrayLib::cRandomPerlin4096::GetNoise2D ( const float  x,
const float  y 
)

Assume InitPerlinTables() already called. treat it like a x*y height map.

◆ GetNoise3D()

float GrayLib::cRandomPerlin4096::GetNoise3D ( const float  x,
const float  y,
const float  z 
)

Assume InitPerlinTables() already called.

◆ InitPerlinTables()

void GrayLib::cRandomPerlin4096::InitPerlinTables ( )

◆ tileableNoise1()

float GrayLib::cRandomPerlin4096::tileableNoise1 ( const float  x,
const float  w 
)

◆ tileableNoise2()

float GrayLib::cRandomPerlin4096::tileableNoise2 ( const float  x,
const float  y,
const float  w,
const float  h 
)

◆ tileableNoise3()

float GrayLib::cRandomPerlin4096::tileableNoise3 ( const float  x,
const float  y,
const float  z,
const float  w,
const float  h,
const float  d 
)

◆ tileableTurbulence2()

float GrayLib::cRandomPerlin4096::tileableTurbulence2 ( const float  x,
const float  y,
const float  w,
const float  h,
float  freq 
)

◆ tileableTurbulence3()

float GrayLib::cRandomPerlin4096::tileableTurbulence3 ( const float  x,
const float  y,
const float  z,
const float  w,
const float  h,
const float  d,
float  freq 
)

◆ turbulence2()

float GrayLib::cRandomPerlin4096::turbulence2 ( const float  x,
const float  y,
float  freq 
)

◆ turbulence3()

float GrayLib::cRandomPerlin4096::turbulence3 ( const float  x,
const float  y,
const float  z,
float  freq 
)

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