11 template<
class Sub
class,
int Dim,
class Real>
32 template<
int Dim,
class Real>
67 void grad(
int hash,
Real& gx);
71 class SimplexNoise<2,
Real> : SimplexNoiseCommon<SimplexNoise<2,Real>, 2, Real>
73 typedef SimplexNoiseCommon<SimplexNoise<2,Real>, 2,
Real> Super;
81 void grad(
int hash,
Real& gx,
Real& gy);
85 class SimplexNoise<3,
Real> : SimplexNoiseCommon<SimplexNoise<3,Real>, 3, Real>
87 typedef SimplexNoiseCommon<SimplexNoise<3,Real>, 3,
Real> Super;
99 class SimplexNoise<4,
Real> : SimplexNoiseCommon<SimplexNoise<4,Real>, 4, Real>
101 typedef SimplexNoiseCommon<SimplexNoise<4,Real>, 4,
Real> Super;
113 extern template class SimplexNoise<1, Float>;
114 extern template class SimplexNoise<2, Float>;
115 extern template class SimplexNoise<3, Float>;
116 extern template class SimplexNoise<4, Float>;
118 extern template class SimplexNoise<1, Double>;
119 extern template class SimplexNoise<2, Double>;
120 extern template class SimplexNoise<3, Double>;
121 extern template class SimplexNoise<4, Double>;
Algebra.
Definition: Alge.h:13
Random number generator interface.
Definition: Gen.h:11
static optnull_t optnull
Null optional, use to reset an optional to an uninitialized state or test for initialization.
Definition: Optional.h:12
SimplexNoiseCommon(RandomGen &gen, int size)
Definition: Simplex.cpp:12
int _size
Definition: Simplex.h:22
SimplexNoise(RandomGen &gen, int size=256)
Vec< Dim, Real > Vec
Definition: Simplex.h:15
vector< int > _perm
Definition: Simplex.h:23
float Real
Real number type. See Real_ for real number operations and constants.
Definition: Real.h:21
Enables any type to be optional so it can exist in an uninitialized null state.
Definition: Optional.h:52
int size(const StdContainer &cont)
Safely get the size of a std container as a signed integer.
Definition: StdUtil.h:19
Alge_< Real > Alge
Definition: Simplex.h:20
Real noise(const Vec &x, optional< Vec & > dx=optnull)
Get value at point in noise field. Returns noise in range [-1, 1].
Definition: Simplex.cpp:31
Generate smooth noise over space. Implementation of Perlin's "Simplex Noise" generator.
Definition: Simplex.h:33
Global Honeycomb namespace.
Methods common to all simplex noise dimensions.
Definition: Simplex.h:12