VuoGradientNoiseCommon implementation.
Definition in file VuoGradientNoiseCommon.c.
Go to the source code of this file.
Functions | |
static VuoReal | grad1d (int hash, VuoReal x) |
Returns pseudo-random gradient value for given 1d point. More... | |
static VuoReal | grad2dPerlin (int hash, VuoReal x, VuoReal y) |
Returns pseudo-random gradient value for given 2d point for the Perlin algorithm. More... | |
static VuoReal | grad2dSimplex (int hash, VuoReal x, VuoReal y) |
Returns a pseudo-random gradient value for given 2d point for the Simplex algorithm. More... | |
static VuoReal | grad3d (int hash, VuoReal x, VuoReal y, VuoReal z) |
Returns pseudo-random gradient value for given 3d point. More... | |
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. More... | |
static float | grad4dSimplex (int hash, float x, float y, float z, float t) |
Returns pseudo-random gradient value for given 4d point for Simplex noise. More... | |
static VuoReal | fade (VuoReal t) |
Returns the value of the fade function of t. More... | |
static VuoReal | lerp (VuoReal t, VuoReal a, VuoReal b) |
Performs and returns linear interpolation on t, a, and b. More... | |
VuoReal | VuoGradientNoise_perlin_VuoReal_VuoReal (VuoReal x) |
Returns the value for Perlin noise at a 1D location. More... | |
VuoPoint2d | VuoGradientNoise_perlin_VuoReal_VuoPoint2d (VuoReal x) |
Returns 2 values for Perlin noise at a 1D location. More... | |
VuoPoint3d | VuoGradientNoise_perlin_VuoReal_VuoPoint3d (VuoReal x) |
Returns 3 values for Perlin noise at a 1D location. More... | |
VuoPoint4d | VuoGradientNoise_perlin_VuoReal_VuoPoint4d (VuoReal x) |
Returns 4 values for Perlin noise at a 1D location. More... | |
VuoReal | VuoGradientNoise_perlin_VuoPoint2d_VuoReal (VuoPoint2d point) |
Returns the value for Perlin noise at a 2D location. More... | |
VuoPoint2d | VuoGradientNoise_perlin_VuoPoint2d_VuoPoint2d (VuoPoint2d point) |
Returns 2 values for Perlin noise at a 2D location. More... | |
VuoPoint3d | VuoGradientNoise_perlin_VuoPoint2d_VuoPoint3d (VuoPoint2d point) |
Returns 3 values for Perlin noise at a 2D location. More... | |
VuoPoint4d | VuoGradientNoise_perlin_VuoPoint2d_VuoPoint4d (VuoPoint2d point) |
Returns 4 values for Perlin noise at a 2D location. More... | |
VuoReal | VuoGradientNoise_perlin_VuoPoint3d_VuoReal (VuoPoint3d point) |
Returns the value for Perlin noise at a 3D location. More... | |
VuoPoint2d | VuoGradientNoise_perlin_VuoPoint3d_VuoPoint2d (VuoPoint3d point) |
Returns 2 values for Perlin noise at a 3D location. More... | |
VuoPoint3d | VuoGradientNoise_perlin_VuoPoint3d_VuoPoint3d (VuoPoint3d point) |
Returns 3 values for Perlin noise at a 3D location. More... | |
VuoPoint4d | VuoGradientNoise_perlin_VuoPoint3d_VuoPoint4d (VuoPoint3d point) |
Returns 4 values for Perlin noise at a 3D location. More... | |
VuoReal | VuoGradientNoise_perlin_VuoPoint4d_VuoReal (VuoPoint4d point) |
Returns the value for Perlin noise at a 4D location. More... | |
VuoPoint2d | VuoGradientNoise_perlin_VuoPoint4d_VuoPoint2d (VuoPoint4d point) |
Returns 2 values for Perlin noise at a 4D location. More... | |
VuoPoint3d | VuoGradientNoise_perlin_VuoPoint4d_VuoPoint3d (VuoPoint4d point) |
Returns 3 values for Perlin noise at a 4D location. More... | |
VuoPoint4d | VuoGradientNoise_perlin_VuoPoint4d_VuoPoint4d (VuoPoint4d point) |
Returns 4 values for Perlin noise at a 4D location. More... | |
VuoReal | VuoGradientNoise_simplex_VuoReal_VuoReal (VuoReal x) |
Returns the value for Simplex noise at a 1D location. More... | |
VuoPoint2d | VuoGradientNoise_simplex_VuoReal_VuoPoint2d (VuoReal x) |
Returns 2 values for Simplex noise at a 1D location. More... | |
VuoPoint3d | VuoGradientNoise_simplex_VuoReal_VuoPoint3d (VuoReal x) |
Returns 3 values for Simplex noise at a 1D location. More... | |
VuoPoint4d | VuoGradientNoise_simplex_VuoReal_VuoPoint4d (VuoReal x) |
Returns 4 values for Simplex noise at a 1D location. More... | |
VuoReal | VuoGradientNoise_simplex_VuoPoint2d_VuoReal (VuoPoint2d point) |
Returns the value for Simplex noise at a 2D location. More... | |
VuoPoint2d | VuoGradientNoise_simplex_VuoPoint2d_VuoPoint2d (VuoPoint2d point) |
Returns 2 values for Simplex noise at a 2D location. More... | |
VuoPoint3d | VuoGradientNoise_simplex_VuoPoint2d_VuoPoint3d (VuoPoint2d point) |
Returns 3 values for Simplex noise at a 2D location. More... | |
VuoPoint4d | VuoGradientNoise_simplex_VuoPoint2d_VuoPoint4d (VuoPoint2d point) |
Returns 4 values for Simplex noise at a 2D location. More... | |
VuoReal | VuoGradientNoise_simplex_VuoPoint3d_VuoReal (VuoPoint3d point) |
Returns the value for Simplex noise at a 3D location. More... | |
VuoPoint2d | VuoGradientNoise_simplex_VuoPoint3d_VuoPoint2d (VuoPoint3d point) |
Returns 2 values for Simplex noise at a 3D location. More... | |
VuoPoint3d | VuoGradientNoise_simplex_VuoPoint3d_VuoPoint3d (VuoPoint3d point) |
Returns 3 values for Simplex noise at a 3D location. More... | |
VuoPoint4d | VuoGradientNoise_simplex_VuoPoint3d_VuoPoint4d (VuoPoint3d point) |
Returns 4 values for Simplex noise at a 3D location. More... | |
VuoReal | VuoGradientNoise_simplex_VuoPoint4d_VuoReal (VuoPoint4d point) |
Returns the value for Simplex noise at a 4D location. More... | |
VuoPoint2d | VuoGradientNoise_simplex_VuoPoint4d_VuoPoint2d (VuoPoint4d point) |
Returns 2 values for Simplex noise at a 4D location. More... | |
VuoPoint3d | VuoGradientNoise_simplex_VuoPoint4d_VuoPoint3d (VuoPoint4d point) |
Returns 3 values for Simplex noise at a 4D location. More... | |
VuoPoint4d | VuoGradientNoise_simplex_VuoPoint4d_VuoPoint4d (VuoPoint4d point) |
Returns 4 values for Simplex noise at a 4D location. More... | |
Variables | |
static unsigned char | perm [] |
Perlin's shuffled ordering of 0..255, repeated once. More... | |
static unsigned char | simplex [64][4] |
Lookup table for simplex traversal. More... | |
Returns the value of the fade function of t.
Definition at line 1051 of file VuoGradientNoiseCommon.c.
Returns pseudo-random gradient value for given 1d point.
Definition at line 955 of file VuoGradientNoiseCommon.c.
Returns pseudo-random gradient value for given 2d point for the Perlin algorithm.
Definition at line 976 of file VuoGradientNoiseCommon.c.
Returns a pseudo-random gradient value for given 2d point for the Simplex algorithm.
Definition at line 987 of file VuoGradientNoiseCommon.c.
Returns pseudo-random gradient value for given 3d point.
Definition at line 998 of file VuoGradientNoiseCommon.c.
Returns pseudo-random gradient value for given 4d point for Perlin noise.
Definition at line 1009 of file VuoGradientNoiseCommon.c.
|
inlinestatic |
Returns pseudo-random gradient value for given 4d point for Simplex noise.
Definition at line 1039 of file VuoGradientNoiseCommon.c.
Performs and returns linear interpolation on t, a, and b.
Definition at line 1059 of file VuoGradientNoiseCommon.c.
VuoPoint2d VuoGradientNoise_perlin_VuoPoint2d_VuoPoint2d | ( | VuoPoint2d | point | ) |
Returns 2 values for Perlin noise at a 2D location.
Definition at line 192 of file VuoGradientNoiseCommon.c.
VuoPoint3d VuoGradientNoise_perlin_VuoPoint2d_VuoPoint3d | ( | VuoPoint2d | point | ) |
Returns 3 values for Perlin noise at a 2D location.
Definition at line 201 of file VuoGradientNoiseCommon.c.
VuoPoint4d VuoGradientNoise_perlin_VuoPoint2d_VuoPoint4d | ( | VuoPoint2d | point | ) |
Returns 4 values for Perlin noise at a 2D location.
Definition at line 211 of file VuoGradientNoiseCommon.c.
VuoReal VuoGradientNoise_perlin_VuoPoint2d_VuoReal | ( | VuoPoint2d | point | ) |
Returns the value for Perlin noise at a 2D location.
Definition at line 155 of file VuoGradientNoiseCommon.c.
VuoPoint2d VuoGradientNoise_perlin_VuoPoint3d_VuoPoint2d | ( | VuoPoint3d | point | ) |
Returns 2 values for Perlin noise at a 3D location.
Definition at line 270 of file VuoGradientNoiseCommon.c.
VuoPoint3d VuoGradientNoise_perlin_VuoPoint3d_VuoPoint3d | ( | VuoPoint3d | point | ) |
Returns 3 values for Perlin noise at a 3D location.
Definition at line 279 of file VuoGradientNoiseCommon.c.
VuoPoint4d VuoGradientNoise_perlin_VuoPoint3d_VuoPoint4d | ( | VuoPoint3d | point | ) |
Returns 4 values for Perlin noise at a 3D location.
Definition at line 289 of file VuoGradientNoiseCommon.c.
VuoReal VuoGradientNoise_perlin_VuoPoint3d_VuoReal | ( | VuoPoint3d | point | ) |
Returns the value for Perlin noise at a 3D location.
Definition at line 222 of file VuoGradientNoiseCommon.c.
VuoPoint2d VuoGradientNoise_perlin_VuoPoint4d_VuoPoint2d | ( | VuoPoint4d | point | ) |
Returns 2 values for Perlin noise at a 4D location.
Definition at line 380 of file VuoGradientNoiseCommon.c.
VuoPoint3d VuoGradientNoise_perlin_VuoPoint4d_VuoPoint3d | ( | VuoPoint4d | point | ) |
Returns 3 values for Perlin noise at a 4D location.
Definition at line 389 of file VuoGradientNoiseCommon.c.
VuoPoint4d VuoGradientNoise_perlin_VuoPoint4d_VuoPoint4d | ( | VuoPoint4d | point | ) |
Returns 4 values for Perlin noise at a 4D location.
Definition at line 399 of file VuoGradientNoiseCommon.c.
VuoReal VuoGradientNoise_perlin_VuoPoint4d_VuoReal | ( | VuoPoint4d | point | ) |
Returns the value for Perlin noise at a 4D location.
Definition at line 300 of file VuoGradientNoiseCommon.c.
VuoPoint2d VuoGradientNoise_perlin_VuoReal_VuoPoint2d | ( | VuoReal | x | ) |
Returns 2 values for Perlin noise at a 1D location.
Definition at line 125 of file VuoGradientNoiseCommon.c.
VuoPoint3d VuoGradientNoise_perlin_VuoReal_VuoPoint3d | ( | VuoReal | x | ) |
Returns 3 values for Perlin noise at a 1D location.
Definition at line 134 of file VuoGradientNoiseCommon.c.
VuoPoint4d VuoGradientNoise_perlin_VuoReal_VuoPoint4d | ( | VuoReal | x | ) |
Returns 4 values for Perlin noise at a 1D location.
Definition at line 144 of file VuoGradientNoiseCommon.c.
Returns the value for Perlin noise at a 1D location.
Definition at line 104 of file VuoGradientNoiseCommon.c.
VuoPoint2d VuoGradientNoise_simplex_VuoPoint2d_VuoPoint2d | ( | VuoPoint2d | point | ) |
Returns 2 values for Simplex noise at a 2D location.
Definition at line 554 of file VuoGradientNoiseCommon.c.
VuoPoint3d VuoGradientNoise_simplex_VuoPoint2d_VuoPoint3d | ( | VuoPoint2d | point | ) |
Returns 3 values for Simplex noise at a 2D location.
Definition at line 563 of file VuoGradientNoiseCommon.c.
VuoPoint4d VuoGradientNoise_simplex_VuoPoint2d_VuoPoint4d | ( | VuoPoint2d | point | ) |
Returns 4 values for Simplex noise at a 2D location.
Definition at line 573 of file VuoGradientNoiseCommon.c.
VuoReal VuoGradientNoise_simplex_VuoPoint2d_VuoReal | ( | VuoPoint2d | point | ) |
Returns the value for Simplex noise at a 2D location.
Definition at line 462 of file VuoGradientNoiseCommon.c.
VuoPoint2d VuoGradientNoise_simplex_VuoPoint3d_VuoPoint2d | ( | VuoPoint3d | point | ) |
Returns 2 values for Simplex noise at a 3D location.
Definition at line 743 of file VuoGradientNoiseCommon.c.
VuoPoint3d VuoGradientNoise_simplex_VuoPoint3d_VuoPoint3d | ( | VuoPoint3d | point | ) |
Returns 3 values for Simplex noise at a 3D location.
Definition at line 752 of file VuoGradientNoiseCommon.c.
VuoPoint4d VuoGradientNoise_simplex_VuoPoint3d_VuoPoint4d | ( | VuoPoint3d | point | ) |
Returns 4 values for Simplex noise at a 3D location.
Definition at line 762 of file VuoGradientNoiseCommon.c.
VuoReal VuoGradientNoise_simplex_VuoPoint3d_VuoReal | ( | VuoPoint3d | point | ) |
Returns the value for Simplex noise at a 3D location.
Definition at line 584 of file VuoGradientNoiseCommon.c.
VuoPoint2d VuoGradientNoise_simplex_VuoPoint4d_VuoPoint2d | ( | VuoPoint4d | point | ) |
Returns 2 values for Simplex noise at a 4D location.
Definition at line 925 of file VuoGradientNoiseCommon.c.
VuoPoint3d VuoGradientNoise_simplex_VuoPoint4d_VuoPoint3d | ( | VuoPoint4d | point | ) |
Returns 3 values for Simplex noise at a 4D location.
Definition at line 934 of file VuoGradientNoiseCommon.c.
VuoPoint4d VuoGradientNoise_simplex_VuoPoint4d_VuoPoint4d | ( | VuoPoint4d | point | ) |
Returns 4 values for Simplex noise at a 4D location.
Definition at line 944 of file VuoGradientNoiseCommon.c.
VuoReal VuoGradientNoise_simplex_VuoPoint4d_VuoReal | ( | VuoPoint4d | point | ) |
Returns the value for Simplex noise at a 4D location.
Definition at line 773 of file VuoGradientNoiseCommon.c.
VuoPoint2d VuoGradientNoise_simplex_VuoReal_VuoPoint2d | ( | VuoReal | x | ) |
Returns 2 values for Simplex noise at a 1D location.
Definition at line 432 of file VuoGradientNoiseCommon.c.
VuoPoint3d VuoGradientNoise_simplex_VuoReal_VuoPoint3d | ( | VuoReal | x | ) |
Returns 3 values for Simplex noise at a 1D location.
Definition at line 441 of file VuoGradientNoiseCommon.c.
VuoPoint4d VuoGradientNoise_simplex_VuoReal_VuoPoint4d | ( | VuoReal | x | ) |
Returns 4 values for Simplex noise at a 1D location.
Definition at line 451 of file VuoGradientNoiseCommon.c.
Returns the value for Simplex noise at a 1D location.
Definition at line 410 of file VuoGradientNoiseCommon.c.
|
static |
Perlin's shuffled ordering of 0..255, repeated once.
Definition at line 32 of file VuoGradientNoiseCommon.c.
|
static |
Lookup table for simplex traversal.
Definition at line 77 of file VuoGradientNoiseCommon.c.