se_core::Perlin Class Reference

#include <Perlin.hpp>

List of all members.

Public Member Functions

 Perlin ()
 Perlin (const unsigned int seed)
void defaultPermutations ()
void shufflePermutations (const unsigned int seed)
float noise (float x, const unsigned int frequency, const bool tile)
float noise (float x, float y, const unsigned int frequencyX, const unsigned int frequencyY, const bool tileX, const bool tileY)
float noise (float x, float y, float z, const unsigned int frequencyX, const unsigned int frequencyY, const unsigned int frequencyZ, const bool tileX, const bool tileY, const bool tileZ)
float noise (float x, float y, float z, float w, const unsigned int frequencyX, const unsigned int frequencyY, const unsigned int frequencyZ, const unsigned int frequencyW, const bool tileX, const bool tileY, const bool tileZ, const bool tileW)
float noise (const Vector3 &v, const unsigned int freq, bool tile)

Static Protected Member Functions

int floor (const float x)
int tileMod (const int index, const unsigned int frequency)
float fade (const float t)
float lerp (const float t, const float a, const float b)
int abs (int v)
float abs (float v)
float gradient (const int hash, const float x)
float gradient (const int hash, const float x, const float y)
float gradient (const int hash, const float x, const float y, const float z)
float gradient (const int hash, const float x, const float y, const float z, const float w)


Constructor & Destructor Documentation

se_core::Perlin::Perlin  ) 
 

Definition at line 50 of file Perlin.cpp.

se_core::Perlin::Perlin const unsigned int  seed  ) 
 

Definition at line 56 of file Perlin.cpp.


Member Function Documentation

float se_core::Perlin::abs float  v  )  [inline, static, protected]
 

Definition at line 58 of file Perlin.hpp.

int se_core::Perlin::abs int  v  )  [inline, static, protected]
 

Definition at line 57 of file Perlin.hpp.

void se_core::Perlin::defaultPermutations  ) 
 

Definition at line 62 of file Perlin.cpp.

float se_core::Perlin::fade const float  t  )  [inline, static, protected]
 

Definition at line 55 of file Perlin.hpp.

int se_core::Perlin::floor const float  x  )  [inline, static, protected]
 

Definition at line 53 of file Perlin.hpp.

float se_core::Perlin::gradient const int  hash,
const float  x,
const float  y,
const float  z,
const float  w
[static, protected]
 

Definition at line 132 of file Perlin.cpp.

float se_core::Perlin::gradient const int  hash,
const float  x,
const float  y,
const float  z
[static, protected]
 

Definition at line 102 of file Perlin.cpp.

float se_core::Perlin::gradient const int  hash,
const float  x,
const float  y
[static, protected]
 

Definition at line 85 of file Perlin.cpp.

float se_core::Perlin::gradient const int  hash,
const float  x
[static, protected]
 

Definition at line 79 of file Perlin.cpp.

float se_core::Perlin::lerp const float  t,
const float  a,
const float  b
[inline, static, protected]
 

Definition at line 56 of file Perlin.hpp.

float se_core::Perlin::noise const Vector3 v,
const unsigned int  freq,
bool  tile
 

Definition at line 401 of file Perlin.cpp.

References se_core::Tuple3::x_, se_core::Tuple3::y_, and se_core::Tuple3::z_.

float se_core::Perlin::noise float  x,
float  y,
float  z,
float  w,
const unsigned int  frequencyX,
const unsigned int  frequencyY,
const unsigned int  frequencyZ,
const unsigned int  frequencyW,
const bool  tileX,
const bool  tileY,
const bool  tileZ,
const bool  tileW
 

Definition at line 304 of file Perlin.cpp.

float se_core::Perlin::noise float  x,
float  y,
float  z,
const unsigned int  frequencyX,
const unsigned int  frequencyY,
const unsigned int  frequencyZ,
const bool  tileX,
const bool  tileY,
const bool  tileZ
 

Definition at line 239 of file Perlin.cpp.

float se_core::Perlin::noise float  x,
float  y,
const unsigned int  frequencyX,
const unsigned int  frequencyY,
const bool  tileX,
const bool  tileY
 

Definition at line 201 of file Perlin.cpp.

float se_core::Perlin::noise float  x,
const unsigned int  frequency,
const bool  tile
 

Definition at line 187 of file Perlin.cpp.

void se_core::Perlin::shufflePermutations const unsigned int  seed  ) 
 

Definition at line 70 of file Perlin.cpp.

int se_core::Perlin::tileMod const int  index,
const unsigned int  frequency
[static, protected]
 

Definition at line 181 of file Perlin.cpp.

References abs.


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

Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:30 2007 by Doxygen version 1.3.9.1.

SourceForge.net Logo