Vuo  1.0.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
VuoGradientNoiseCommon.c File Reference

Description

VuoGradientNoiseCommon implementation.

Functions

static VuoReal grad1d (int hash, VuoReal x)
 Returns pseudo-random gradient value for given 1d point.
 
static VuoReal grad2dPerlin (int hash, VuoReal x, VuoReal y)
 Returns pseudo-random gradient value for given 2d point for the Perlin algorithm.
 
static VuoReal grad2dSimplex (int hash, VuoReal x, VuoReal y)
 Returns a pseudo-random gradient value for given 2d point for the Simplex algorithm.
 
static VuoReal grad3d (int hash, VuoReal x, VuoReal y, VuoReal z)
 Returns pseudo-random gradient value for given 3d point.
 
static VuoReal grad4dPerlin (int hash, VuoReal x, VuoReal y, VuoReal z, VuoReal w)
 Returns pseudo-random gradient value for given 4d point for Perlin noise.
 
static VuoReal grad4dSimplex (int hash, VuoReal x, VuoReal y, VuoReal z, VuoReal t)
 Returns pseudo-random gradient value for given 4d point for Simplex noise.
 
static VuoReal fade (VuoReal t)
 Returns the value of the fade function of t.
 
static VuoReal lerp (VuoReal t, VuoReal a, VuoReal b)
 Performs and returns linear interpolation on t, a, and b.
 
VuoReal VuoGradientNoise_perlin_VuoReal_VuoReal (VuoReal x)
 Returns the value for Perlin noise at a 1D location.
 
VuoPoint2d VuoGradientNoise_perlin_VuoReal_VuoPoint2d (VuoReal x)
 Returns 2 values for Perlin noise at a 1D location.
 
VuoPoint3d VuoGradientNoise_perlin_VuoReal_VuoPoint3d (VuoReal x)
 Returns 3 values for Perlin noise at a 1D location.
 
VuoPoint4d VuoGradientNoise_perlin_VuoReal_VuoPoint4d (VuoReal x)
 Returns 4 values for Perlin noise at a 1D location.
 
VuoReal VuoGradientNoise_perlin_VuoPoint2d_VuoReal (VuoPoint2d point)
 Returns the value for Perlin noise at a 2D location.
 
VuoPoint2d VuoGradientNoise_perlin_VuoPoint2d_VuoPoint2d (VuoPoint2d point)
 Returns 2 values for Perlin noise at a 2D location.
 
VuoPoint3d VuoGradientNoise_perlin_VuoPoint2d_VuoPoint3d (VuoPoint2d point)
 Returns 3 values for Perlin noise at a 2D location.
 
VuoPoint4d VuoGradientNoise_perlin_VuoPoint2d_VuoPoint4d (VuoPoint2d point)
 Returns 4 values for Perlin noise at a 2D location.
 
VuoReal VuoGradientNoise_perlin_VuoPoint3d_VuoReal (VuoPoint3d point)
 Returns the value for Perlin noise at a 3D location.
 
VuoPoint2d VuoGradientNoise_perlin_VuoPoint3d_VuoPoint2d (VuoPoint3d point)
 Returns 2 values for Perlin noise at a 3D location.
 
VuoPoint3d VuoGradientNoise_perlin_VuoPoint3d_VuoPoint3d (VuoPoint3d point)
 Returns 3 values for Perlin noise at a 3D location.
 
VuoPoint4d VuoGradientNoise_perlin_VuoPoint3d_VuoPoint4d (VuoPoint3d point)
 Returns 4 values for Perlin noise at a 3D location.
 
VuoReal VuoGradientNoise_perlin_VuoPoint4d_VuoReal (VuoPoint4d point)
 Returns the value for Perlin noise at a 4D location.
 
VuoPoint2d VuoGradientNoise_perlin_VuoPoint4d_VuoPoint2d (VuoPoint4d point)
 Returns 2 values for Perlin noise at a 4D location.
 
VuoPoint3d VuoGradientNoise_perlin_VuoPoint4d_VuoPoint3d (VuoPoint4d point)
 Returns 3 values for Perlin noise at a 4D location.
 
VuoPoint4d VuoGradientNoise_perlin_VuoPoint4d_VuoPoint4d (VuoPoint4d point)
 Returns 4 values for Perlin noise at a 4D location.
 
VuoReal VuoGradientNoise_simplex_VuoReal_VuoReal (VuoReal x)
 Returns the value for Simplex noise at a 1D location.
 
VuoPoint2d VuoGradientNoise_simplex_VuoReal_VuoPoint2d (VuoReal x)
 Returns 2 values for Simplex noise at a 1D location.
 
VuoPoint3d VuoGradientNoise_simplex_VuoReal_VuoPoint3d (VuoReal x)
 Returns 3 values for Simplex noise at a 1D location.
 
VuoPoint4d VuoGradientNoise_simplex_VuoReal_VuoPoint4d (VuoReal x)
 Returns 4 values for Simplex noise at a 1D location.
 
VuoReal VuoGradientNoise_simplex_VuoPoint2d_VuoReal (VuoPoint2d point)
 Returns the value for Simplex noise at a 2D location.
 
VuoPoint2d VuoGradientNoise_simplex_VuoPoint2d_VuoPoint2d (VuoPoint2d point)
 Returns 2 values for Simplex noise at a 2D location.
 
VuoPoint3d VuoGradientNoise_simplex_VuoPoint2d_VuoPoint3d (VuoPoint2d point)
 Returns 3 values for Simplex noise at a 2D location.
 
VuoPoint4d VuoGradientNoise_simplex_VuoPoint2d_VuoPoint4d (VuoPoint2d point)
 Returns 4 values for Simplex noise at a 2D location.
 
VuoReal VuoGradientNoise_simplex_VuoPoint3d_VuoReal (VuoPoint3d point)
 Returns the value for Simplex noise at a 3D location.
 
VuoPoint2d VuoGradientNoise_simplex_VuoPoint3d_VuoPoint2d (VuoPoint3d point)
 Returns 2 values for Simplex noise at a 3D location.
 
VuoPoint3d VuoGradientNoise_simplex_VuoPoint3d_VuoPoint3d (VuoPoint3d point)
 Returns 3 values for Simplex noise at a 3D location.
 
VuoPoint4d VuoGradientNoise_simplex_VuoPoint3d_VuoPoint4d (VuoPoint3d point)
 Returns 4 values for Simplex noise at a 3D location.
 
VuoReal VuoGradientNoise_simplex_VuoPoint4d_VuoReal (VuoPoint4d point)
 Returns the value for Simplex noise at a 4D location.
 
VuoPoint2d VuoGradientNoise_simplex_VuoPoint4d_VuoPoint2d (VuoPoint4d point)
 Returns 2 values for Simplex noise at a 4D location.
 
VuoPoint3d VuoGradientNoise_simplex_VuoPoint4d_VuoPoint3d (VuoPoint4d point)
 Returns 3 values for Simplex noise at a 4D location.
 
VuoPoint4d VuoGradientNoise_simplex_VuoPoint4d_VuoPoint4d (VuoPoint4d point)
 Returns 4 values for Simplex noise at a 4D location.
 

Variables

static unsigned char perm []
 Perlin's shuffled ordering of 0..255, repeated once.
 
static unsigned char simplex [64][4]
 Lookup table for simplex traversal.
 

Function Documentation

static VuoReal fade ( VuoReal  t)
inlinestatic

Returns the value of the fade function of t.

static VuoReal grad1d ( int  hash,
VuoReal  x 
)
inlinestatic

Returns pseudo-random gradient value for given 1d point.

static VuoReal grad2dPerlin ( int  hash,
VuoReal  x,
VuoReal  y 
)
inlinestatic

Returns pseudo-random gradient value for given 2d point for the Perlin algorithm.

static VuoReal grad2dSimplex ( int  hash,
VuoReal  x,
VuoReal  y 
)
inlinestatic

Returns a pseudo-random gradient value for given 2d point for the Simplex algorithm.

static VuoReal grad3d ( int  hash,
VuoReal  x,
VuoReal  y,
VuoReal  z 
)
inlinestatic

Returns pseudo-random gradient value for given 3d point.

static VuoReal grad4dPerlin ( int  hash,
VuoReal  x,
VuoReal  y,
VuoReal  z,
VuoReal  w 
)
inlinestatic

Returns pseudo-random gradient value for given 4d point for Perlin noise.

static VuoReal grad4dSimplex ( int  hash,
VuoReal  x,
VuoReal  y,
VuoReal  z,
VuoReal  t 
)
inlinestatic

Returns pseudo-random gradient value for given 4d point for Simplex noise.

static VuoReal lerp ( VuoReal  t,
VuoReal  a,
VuoReal  b 
)
inlinestatic

Performs and returns linear interpolation on t, a, and b.

VuoPoint2d VuoGradientNoise_perlin_VuoPoint2d_VuoPoint2d ( VuoPoint2d  point)

Returns 2 values for Perlin noise at a 2D location.

VuoPoint3d VuoGradientNoise_perlin_VuoPoint2d_VuoPoint3d ( VuoPoint2d  point)

Returns 3 values for Perlin noise at a 2D location.

VuoPoint4d VuoGradientNoise_perlin_VuoPoint2d_VuoPoint4d ( VuoPoint2d  point)

Returns 4 values for Perlin noise at a 2D location.

VuoReal VuoGradientNoise_perlin_VuoPoint2d_VuoReal ( VuoPoint2d  point)

Returns the value for Perlin noise at a 2D location.

VuoPoint2d VuoGradientNoise_perlin_VuoPoint3d_VuoPoint2d ( VuoPoint3d  point)

Returns 2 values for Perlin noise at a 3D location.

VuoPoint3d VuoGradientNoise_perlin_VuoPoint3d_VuoPoint3d ( VuoPoint3d  point)

Returns 3 values for Perlin noise at a 3D location.

VuoPoint4d VuoGradientNoise_perlin_VuoPoint3d_VuoPoint4d ( VuoPoint3d  point)

Returns 4 values for Perlin noise at a 3D location.

VuoReal VuoGradientNoise_perlin_VuoPoint3d_VuoReal ( VuoPoint3d  point)

Returns the value for Perlin noise at a 3D location.

VuoPoint2d VuoGradientNoise_perlin_VuoPoint4d_VuoPoint2d ( VuoPoint4d  point)

Returns 2 values for Perlin noise at a 4D location.

VuoPoint3d VuoGradientNoise_perlin_VuoPoint4d_VuoPoint3d ( VuoPoint4d  point)

Returns 3 values for Perlin noise at a 4D location.

VuoPoint4d VuoGradientNoise_perlin_VuoPoint4d_VuoPoint4d ( VuoPoint4d  point)

Returns 4 values for Perlin noise at a 4D location.

VuoReal VuoGradientNoise_perlin_VuoPoint4d_VuoReal ( VuoPoint4d  point)

Returns the value for Perlin noise at a 4D location.

VuoPoint2d VuoGradientNoise_perlin_VuoReal_VuoPoint2d ( VuoReal  x)

Returns 2 values for Perlin noise at a 1D location.

VuoPoint3d VuoGradientNoise_perlin_VuoReal_VuoPoint3d ( VuoReal  x)

Returns 3 values for Perlin noise at a 1D location.

VuoPoint4d VuoGradientNoise_perlin_VuoReal_VuoPoint4d ( VuoReal  x)

Returns 4 values for Perlin noise at a 1D location.

VuoReal VuoGradientNoise_perlin_VuoReal_VuoReal ( VuoReal  x)

Returns the value for Perlin noise at a 1D location.

VuoPoint2d VuoGradientNoise_simplex_VuoPoint2d_VuoPoint2d ( VuoPoint2d  point)

Returns 2 values for Simplex noise at a 2D location.

VuoPoint3d VuoGradientNoise_simplex_VuoPoint2d_VuoPoint3d ( VuoPoint2d  point)

Returns 3 values for Simplex noise at a 2D location.

VuoPoint4d VuoGradientNoise_simplex_VuoPoint2d_VuoPoint4d ( VuoPoint2d  point)

Returns 4 values for Simplex noise at a 2D location.

VuoReal VuoGradientNoise_simplex_VuoPoint2d_VuoReal ( VuoPoint2d  point)

Returns the value for Simplex noise at a 2D location.

VuoPoint2d VuoGradientNoise_simplex_VuoPoint3d_VuoPoint2d ( VuoPoint3d  point)

Returns 2 values for Simplex noise at a 3D location.

VuoPoint3d VuoGradientNoise_simplex_VuoPoint3d_VuoPoint3d ( VuoPoint3d  point)

Returns 3 values for Simplex noise at a 3D location.

VuoPoint4d VuoGradientNoise_simplex_VuoPoint3d_VuoPoint4d ( VuoPoint3d  point)

Returns 4 values for Simplex noise at a 3D location.

VuoReal VuoGradientNoise_simplex_VuoPoint3d_VuoReal ( VuoPoint3d  point)

Returns the value for Simplex noise at a 3D location.

VuoPoint2d VuoGradientNoise_simplex_VuoPoint4d_VuoPoint2d ( VuoPoint4d  point)

Returns 2 values for Simplex noise at a 4D location.

VuoPoint3d VuoGradientNoise_simplex_VuoPoint4d_VuoPoint3d ( VuoPoint4d  point)

Returns 3 values for Simplex noise at a 4D location.

VuoPoint4d VuoGradientNoise_simplex_VuoPoint4d_VuoPoint4d ( VuoPoint4d  point)

Returns 4 values for Simplex noise at a 4D location.

VuoReal VuoGradientNoise_simplex_VuoPoint4d_VuoReal ( VuoPoint4d  point)

Returns the value for Simplex noise at a 4D location.

VuoPoint2d VuoGradientNoise_simplex_VuoReal_VuoPoint2d ( VuoReal  x)

Returns 2 values for Simplex noise at a 1D location.

VuoPoint3d VuoGradientNoise_simplex_VuoReal_VuoPoint3d ( VuoReal  x)

Returns 3 values for Simplex noise at a 1D location.

VuoPoint4d VuoGradientNoise_simplex_VuoReal_VuoPoint4d ( VuoReal  x)

Returns 4 values for Simplex noise at a 1D location.

VuoReal VuoGradientNoise_simplex_VuoReal_VuoReal ( VuoReal  x)

Returns the value for Simplex noise at a 1D location.

Variable Documentation

unsigned char perm[]
static

Perlin's shuffled ordering of 0..255, repeated once.

unsigned char simplex[64][4]
static
Initial value:
=
{
{0,1,2,3},{0,1,3,2},{0,0,0,0},{0,2,3,1},{0,0,0,0},{0,0,0,0},{0,0,0,0},{1,2,3,0},
{0,2,1,3},{0,0,0,0},{0,3,1,2},{0,3,2,1},{0,0,0,0},{0,0,0,0},{0,0,0,0},{1,3,2,0},
{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0},
{1,2,0,3},{0,0,0,0},{1,3,0,2},{0,0,0,0},{0,0,0,0},{0,0,0,0},{2,3,0,1},{2,3,1,0},
{1,0,2,3},{1,0,3,2},{0,0,0,0},{0,0,0,0},{0,0,0,0},{2,0,3,1},{0,0,0,0},{2,1,3,0},
{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0},
{2,0,1,3},{0,0,0,0},{0,0,0,0},{0,0,0,0},{3,0,1,2},{3,0,2,1},{0,0,0,0},{3,1,2,0},
{2,1,0,3},{0,0,0,0},{0,0,0,0},{0,0,0,0},{3,1,0,2},{0,0,0,0},{3,2,0,1},{3,2,1,0}
}

Lookup table for simplex traversal.