# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CRandomGrid3D Class Reference

A static 3D array of random value + other infos for noise. More...

List of all members.

Public Methods

 CRandomGrid3D ()

Static Public Methods

float evalNearest (const CVector &pos)
float evalBiLinear (const CVector &pos)
float getLevelSize (uint level)
const CVector & getLevelPhase (uint level)

Static Private Methods

float lookup (uint ux, uint uy, uint uz)
void easeInEaseOut (float &y, float x)

Static Private Attributes

uint8 _Texture3d [NL3D_NOISE_GRID_SIZE *NL3D_NOISE_GRID_SIZE *NL3D_NOISE_GRID_SIZE]
float _Sizes [NL3D_NOISE_LEVEL]
CVector _LevelPhase [NL3D_NOISE_LEVEL]


Detailed Description

A static 3D array of random value + other infos for noise.

Definition at line 49 of file noise_value.cpp.


Constructor & Destructor Documentation

NL3D::CRandomGrid3D::CRandomGrid3D   [inline]
 

Definition at line 54 of file noise_value.cpp.

References NLMISC::frand, id, NL3D_NOISE_GRID_SIZE, NL3D_NOISE_GRID_SIZE_SHIFT, NL3D_NOISE_LEVEL, v, x, y, and z.


Member Function Documentation

void NL3D::CRandomGrid3D::easeInEaseOut float &    y,
float    x
[inline, static, private]
 

Definition at line 191 of file noise_value.cpp.

References x, and y.

float NL3D::CRandomGrid3D::evalBiLinear const CVector &    pos [inline, static]
 

Definition at line 119 of file noise_value.cpp.

References NL3D_NOISE_GRID_SIZE, NL3D::NL3D_OO255, NL3D::OptFastFloor, x, y, and z.

float NL3D::CRandomGrid3D::evalNearest const CVector &    pos [inline, static]
 

Definition at line 101 of file noise_value.cpp.

References NL3D_NOISE_GRID_SIZE, NL3D::NL3D_OO255, NL3D::OptFastFloor, x, y, and z.

const CVector& NL3D::CRandomGrid3D::getLevelPhase uint    level [inline, static]
 

Definition at line 169 of file noise_value.cpp.

References level.

float NL3D::CRandomGrid3D::getLevelSize uint    level [inline, static]
 

Definition at line 163 of file noise_value.cpp.

References level.

float NL3D::CRandomGrid3D::lookup uint    ux,
uint    uy,
uint    uz
[inline, static, private]
 

Definition at line 184 of file noise_value.cpp.

References id, and NL3D_NOISE_GRID_SIZE_SHIFT.


Member Data Documentation

CVector NL3D::CRandomGrid3D::_LevelPhase [static, private]
 

Definition at line 204 of file noise_value.cpp.

float NL3D::CRandomGrid3D::_Sizes [static, private]
 

Definition at line 203 of file noise_value.cpp.

uint8 NL3D::CRandomGrid3D::_Texture3d [static, private]
 

Definition at line 202 of file noise_value.cpp.


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