Definition at line 78 of file flowfield.cpp.hpp.
78 {
79 int xi = ((int)
floorf(
x)) & 255;
80 int yi = ((int)
floorf(
y)) & 255;
88 int bb =
perm[
perm[xi + 1] + yi + 1];
89 float x1 =
lerp(
grad(aa, xf, yf),
grad(ba, xf - 1.0f, yf), u);
90 float x2 =
lerp(
grad(ab, xf, yf - 1.0f),
91 grad(bb, xf - 1.0f, yf - 1.0f), u);
92 return lerp(x1, x2, v);
93}
static float fade(float t)
static float lerp(float a, float b, float t)
static float grad(int h, float x, float y)
float floorf(float value) FL_NOEXCEPT
References fl::fade(), fl::floorf(), fl::grad(), fl::lerp(), perm, fl::x, and fl::y.