22 static void initNoise();
25 static float noise1D(
float x);
28 {
return noise2D(x[0], x[1]); }
29 static float noise2D(
float x,
float y);
30 static float noise3D(
const fpreal32 x[3]);
31 static float noise3D(
const fpreal64 x[3]);
32 static float noise4D(
const fpreal32 x[4]);
33 static float noise4D(
const fpreal64 x[4]);
38 { noise2D(n, dndx, dndy, x[0], x[1]); }
59 static float flownoise2D(
float x,
float y,
float flow);
62 {
return flownoise2D(x[0], x[1], flow); }
63 static float flownoise3D(
const fpreal32 x[3],
float flow);
64 static float flownoise3D(
const fpreal64 x[3],
float flow);
65 static float flownoise4D(
const fpreal32 x[4],
float flow);
66 static float flownoise4D(
const fpreal64 x[4],
float flow);
76 static float noise1D(
float x,
uint period);
79 {
return noise2D(x[0], x[1], per[0], per[1]); }
80 static float noise2D(
float x,
float y,
uint px,
uint py);
81 static float noise3D(
const fpreal32 x[3],
const uint period[3]);
82 static float noise3D(
const fpreal64 x[3],
const uint period[3]);
83 static float noise4D(
const fpreal32 x[4],
const uint period[4]);
84 static float noise4D(
const fpreal64 x[4],
const uint period[4]);
89 const uint period[2],
float flow)
91 return flownoise2D(x[0], x[1], period[0], period[1], flow);
93 static float flownoise2D(
float x,
float y,
95 static float flownoise3D(
const fpreal32 x[3],
96 const uint period[3],
float flow);
97 static float flownoise3D(
const fpreal64 x[3],
98 const uint period[3],
float flow);
99 static float flownoise4D(
const fpreal32 x[4],
100 const uint period[4],
float flow);
101 static float flownoise4D(
const fpreal64 x[4],
102 const uint period[4],
float flow);
105 static void noise1D(
fpreal32 n[3],
float x);
106 static void noise1D(
fpreal64 n[3],
float x);
107 template <
typename T>
109 { noise2D(n, x[0], x[1]); }
110 static void noise2D(
fpreal32 n[3],
float x,
float y);
111 static void noise2D(
fpreal64 n[3],
float x,
float y);
118 template <
typename T>
120 { noise2D(n, dndx, dndy, x[0], x[1]); }
141 template <
typename T>
143 const T x[2],
float flow)
144 { flownoise2D(n, x[0], x[1], flow); }
146 float x,
float y,
float flow);
152 template <
typename T>
155 { flownoise2D(n, x[0], x[1], flow); }
157 float x,
float y,
float flow);
173 template <
typename T>
174 static inline void noise2D(
float n[3],
const float x[2],
const uint per[2])
175 { noise2D(n, x[0], x[1], per[0], per[1]); }
176 static void noise2D(
fpreal32 n[3],
float x,
float y,
178 static void noise2D(
fpreal64 n[3],
float x,
float y,
190 template <
typename T>
192 const uint per[2],
float flow)
194 flownoise2D(n, x[0], x[1], per[0], per[1], flow);
196 static void flownoise2D(
fpreal32 n[3],
float x,
float y,
198 static void flownoise2D(
fpreal64 n[3],
float x,
float y,
201 const uint per[3],
float flow);
203 const uint per[3],
float flow);
205 const uint per[4],
float flow);
207 const uint per[4],
float flow);
static void noise2D(float n[3], const float x[2], const uint per[2])
static void flownoise2D(T n[3], const T x[2], const uint per[2], float flow)
static float flownoise2D(const T x[2], float flow)
static float flownoise2D(const float x[2], const uint period[2], float flow)
static void noise2D(T n[3], T dndx[3], T dndy[3], const T x[2])
static void flownoise2D(fpreal64 n[3], const fpreal64 x[2], float flow)
static void noise2D(T n[3], const T x[2])
static float noise2D(const T x[2])
static void noise2D(T &n, T &dndx, T &dndy, const T x[2])
static float noise2D(const T x[2], const uint per[2])
static void flownoise2D(T n[3], const T x[2], float flow)