Honeycomb
0.1
Component-Model Framework
|
Generate smooth noise over space. Implementation of Perlin's "Simplex Noise" generator. More...
#include <Simplex.h>
Public Types | |
typedef Vec< Dim, Real > | Vec |
Public Member Functions | |
SimplexNoise (RandomGen &gen, int size=256) | |
Real | noise (const Vec &x, optional< Vec & > dx=optnull) |
Get value at point in noise field. Returns noise in range [-1, 1]. More... | |
Generate smooth noise over space. Implementation of Perlin's "Simplex Noise" generator.
Dim | Dimension of field, range [1,4] |
typedef Vec<Dim,Real> honey::SimplexNoiseCommon< Subclass, Dim, Real >::Vec |
honey::SimplexNoise< Dim, Real >::SimplexNoise | ( | RandomGen & | gen, |
int | size = 256 |
||
) |
gen | Generator used to create noise. The generator is only used during construction. |
size | Size of noise field. A power of two is recommended for speed. Field range is [0, size], mirrored about the origin and wrapping for values larger than size . |
Real honey::SimplexNoise< Real >::noise | ( | const Vec & | x, |
optional< Vec & > | dx = optnull |
||
) |
Get value at point in noise field. Returns noise in range [-1, 1].
x | Point in noise field |
dx | If specified, gradient (spacial derivative) at point x will be returned here. |