Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
cNoise Class Reference

#include <Noise.h>

Public Member Functions

 cNoise (const cNoise &a_Noise)
 
 cNoise (int a_Seed)
 
NOISE_DATATYPE CosineNoise1D (NOISE_DATATYPE a_X) const
 
NOISE_DATATYPE CubicNoise1D (NOISE_DATATYPE a_X) const
 
NOISE_DATATYPE CubicNoise2D (NOISE_DATATYPE a_X, NOISE_DATATYPE a_Y) const
 
NOISE_DATATYPE CubicNoise3D (NOISE_DATATYPE a_X, NOISE_DATATYPE a_Y, NOISE_DATATYPE a_Z) const
 
int GetSeed (void) const
 
NOISE_DATATYPE IntNoise1D (int a_X) const
 
int IntNoise1DInt (int a_X) const
 
NOISE_DATATYPE IntNoise2D (int a_X, int a_Y) const
 
NOISE_DATATYPE IntNoise2DInRange (int a_X, int a_Y, float a_Min, float a_Max) const
 
int IntNoise2DInt (int a_X, int a_Y) const
 
NOISE_DATATYPE IntNoise3D (int a_X, int a_Y, int a_Z) const
 
NOISE_DATATYPE IntNoise3D (Vector3i a_Pos) const
 
int IntNoise3DInt (int a_X, int a_Y, int a_Z) const
 
int IntNoise3DInt (Vector3i a_Pos) const
 
NOISE_DATATYPE LinearNoise1D (NOISE_DATATYPE a_X) const
 
void SetSeed (int a_Seed)
 
NOISE_DATATYPE SmoothNoise1D (int a_X) const
 

Static Public Member Functions

static NOISE_DATATYPE CosineInterpolate (NOISE_DATATYPE a_A, NOISE_DATATYPE a_B, NOISE_DATATYPE a_Pct)
 
static NOISE_DATATYPE CubicInterpolate (NOISE_DATATYPE a_A, NOISE_DATATYPE a_B, NOISE_DATATYPE a_C, NOISE_DATATYPE a_D, NOISE_DATATYPE a_Pct)
 
static NOISE_DATATYPE LinearInterpolate (NOISE_DATATYPE a_A, NOISE_DATATYPE a_B, NOISE_DATATYPE a_Pct)
 

Private Attributes

int m_Seed
 

Detailed Description

Definition at line 19 of file Noise.h.

Constructor & Destructor Documentation

◆ cNoise() [1/2]

cNoise::cNoise ( int  a_Seed)

Definition at line 533 of file Noise.cpp.

◆ cNoise() [2/2]

cNoise::cNoise ( const cNoise a_Noise)

Definition at line 542 of file Noise.cpp.

Member Function Documentation

◆ CosineInterpolate()

NOISE_DATATYPE cNoise::CosineInterpolate ( NOISE_DATATYPE  a_A,
NOISE_DATATYPE  a_B,
NOISE_DATATYPE  a_Pct 
)
inlinestatic

Definition at line 288 of file Noise.h.

◆ CosineNoise1D()

NOISE_DATATYPE cNoise::CosineNoise1D ( NOISE_DATATYPE  a_X) const

Definition at line 562 of file Noise.cpp.

◆ CubicInterpolate()

NOISE_DATATYPE cNoise::CubicInterpolate ( NOISE_DATATYPE  a_A,
NOISE_DATATYPE  a_B,
NOISE_DATATYPE  a_C,
NOISE_DATATYPE  a_D,
NOISE_DATATYPE  a_Pct 
)
inlinestatic

Definition at line 274 of file Noise.h.

◆ CubicNoise1D()

NOISE_DATATYPE cNoise::CubicNoise1D ( NOISE_DATATYPE  a_X) const

Definition at line 573 of file Noise.cpp.

◆ CubicNoise2D()

NOISE_DATATYPE cNoise::CubicNoise2D ( NOISE_DATATYPE  a_X,
NOISE_DATATYPE  a_Y 
) const

Definition at line 593 of file Noise.cpp.

◆ CubicNoise3D()

NOISE_DATATYPE cNoise::CubicNoise3D ( NOISE_DATATYPE  a_X,
NOISE_DATATYPE  a_Y,
NOISE_DATATYPE  a_Z 
) const

Definition at line 621 of file Noise.cpp.

◆ GetSeed()

int cNoise::GetSeed ( void  ) const
inline

Definition at line 53 of file Noise.h.

◆ IntNoise1D()

NOISE_DATATYPE cNoise::IntNoise1D ( int  a_X) const
inline

Definition at line 187 of file Noise.h.

◆ IntNoise1DInt()

int cNoise::IntNoise1DInt ( int  a_X) const
inline

Definition at line 233 of file Noise.h.

◆ IntNoise2D()

NOISE_DATATYPE cNoise::IntNoise2D ( int  a_X,
int  a_Y 
) const
inline

Definition at line 198 of file Noise.h.

◆ IntNoise2DInRange()

NOISE_DATATYPE cNoise::IntNoise2DInRange ( int  a_X,
int  a_Y,
float  a_Min,
float  a_Max 
) const
inline

Definition at line 32 of file Noise.h.

◆ IntNoise2DInt()

int cNoise::IntNoise2DInt ( int  a_X,
int  a_Y 
) const
inline

Definition at line 243 of file Noise.h.

◆ IntNoise3D() [1/2]

NOISE_DATATYPE cNoise::IntNoise3D ( int  a_X,
int  a_Y,
int  a_Z 
) const
inline

Definition at line 210 of file Noise.h.

◆ IntNoise3D() [2/2]

NOISE_DATATYPE cNoise::IntNoise3D ( Vector3i  a_Pos) const
inline

Definition at line 224 of file Noise.h.

◆ IntNoise3DInt() [1/2]

int cNoise::IntNoise3DInt ( int  a_X,
int  a_Y,
int  a_Z 
) const
inline

Definition at line 254 of file Noise.h.

◆ IntNoise3DInt() [2/2]

int cNoise::IntNoise3DInt ( Vector3i  a_Pos) const
inline

Definition at line 265 of file Noise.h.

◆ LinearInterpolate()

NOISE_DATATYPE cNoise::LinearInterpolate ( NOISE_DATATYPE  a_A,
NOISE_DATATYPE  a_B,
NOISE_DATATYPE  a_Pct 
)
inlinestatic

Definition at line 299 of file Noise.h.

◆ LinearNoise1D()

NOISE_DATATYPE cNoise::LinearNoise1D ( NOISE_DATATYPE  a_X) const

Definition at line 551 of file Noise.cpp.

◆ SetSeed()

void cNoise::SetSeed ( int  a_Seed)
inline

Definition at line 52 of file Noise.h.

◆ SmoothNoise1D()

NOISE_DATATYPE cNoise::SmoothNoise1D ( int  a_X) const

Definition at line 584 of file Noise.cpp.

Member Data Documentation

◆ m_Seed

int cNoise::m_Seed
private

Definition at line 60 of file Noise.h.


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