reference

This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.

ofNoise.h File Reference

C implementation of Perlin Simplex Noise over 1,2,3, and 4 dimensions. More...

Go to the source code of this file.

Macros

#define OFNOISE_FASTFLOOR(x)   ( ((x)>0) ? ((int)x) : (((int)x)-1) )
 

Functions

float grad1 (int hash, float x)
 
float grad2 (int hash, float x, float y)
 
float grad3 (int hash, float x, float y, float z)
 
float grad4 (int hash, float x, float y, float z, float t)
 
float _slang_library_noise1 (float x)
 
float _slang_library_noise2 (float x, float y)
 
float _slang_library_noise3 (float x, float y, float z)
 
float _slang_library_noise4 (float x, float y, float z, float w)
 

Detailed Description

C implementation of Perlin Simplex Noise over 1,2,3, and 4 dimensions.

Author
Stefan Gustavson (stegu.nosp@m.@itn.nosp@m..liu..nosp@m.se)

Macro Definition Documentation

◆ OFNOISE_FASTFLOOR

#define OFNOISE_FASTFLOOR (   x)    ( ((x)>0) ? ((int)x) : (((int)x)-1) )

Function Documentation

◆ _slang_library_noise1()

float _slang_library_noise1 ( float  x)
inline

◆ _slang_library_noise2()

float _slang_library_noise2 ( float  x,
float  y 
)
inline

◆ _slang_library_noise3()

float _slang_library_noise3 ( float  x,
float  y,
float  z 
)
inline

◆ _slang_library_noise4()

float _slang_library_noise4 ( float  x,
float  y,
float  z,
float  w 
)
inline

◆ grad1()

float grad1 ( int  hash,
float  x 
)
inline

◆ grad2()

float grad2 ( int  hash,
float  x,
float  y 
)
inline

◆ grad3()

float grad3 ( int  hash,
float  x,
float  y,
float  z 
)
inline

◆ grad4()

float grad4 ( int  hash,
float  x,
float  y,
float  z,
float  t 
)
inline