Antkeeper
0.0.1
|
Noise functions. More...
Namespaces | |
voronoi | |
Voronoi functions. | |
Functions | |
template<class T , std::size_t N> | |
T | fbm (vector< T, N > position, std::size_t octaves, T lacunarity, T gain, T(*noise)(const vector< T, N > &, vector< hash::make_uint_t< T >, N >(*)(const vector< T, N > &))=&simplex< T, N >, vector< hash::make_uint_t< T >, N >(*hash)(const vector< T, N > &)=&hash::pcg< T, N >) |
Fractional Brownian motion (fBm). More... | |
template<class T , std::size_t N> | |
T | simplex (const vector< T, N > &position, vector< hash::make_uint_t< T >, N >(*hash)(const vector< T, N > &)=&hash::pcg< T, N >) |
n-dimensional simplex noise. More... | |
Noise functions.
T math::noise::fbm | ( | vector< T, N > | position, |
std::size_t | octaves, | ||
T | lacunarity, | ||
T | gain, | ||
T(*)(const vector< T, N > &, vector< hash::make_uint_t< T >, N >(*)(const vector< T, N > &)) | noise = &simplex<T, N> , |
||
vector< hash::make_uint_t< T >, N >(*)(const vector< T, N > &) | hash = &hash::pcg<T, N> |
||
) |
T math::noise::simplex | ( | const vector< T, N > & | position, |
vector< hash::make_uint_t< T >, N >(*)(const vector< T, N > &) | hash = &hash::pcg<T, N> |
||
) |
n-dimensional simplex noise.
T | Real type. |
N | Number of dimensions. |
position | Input position. |
hash | Hash function. |
[-1, 1]
.C2-continuous kernel falloff function.
sqr_distance | Squared distance from the kernel center. |
Definition at line 141 of file simplex.hpp.