20 int i =
abs(
int(
modf(
x, &tmp) * range));
46 return x1 * (1 - t) + x2 * t;
65 if (h < 0) [[unlikely]] {
78 cerr <<
"x0=" << x0 <<
" x1=" << x1 <<
" x2=" << x2 <<
" x3=" << x3 << endl;
79 cerr <<
"y0=" << y0 <<
" y1=" << y1 <<
" y2=" << y2 <<
" y3=" << y3 <<
" :" << endl;
81 return (x0 * y0 + x1 * y1 + x2 * y2 + x3 * y3) / (y0 + y1 + y2 + y3);
88 for (uint i = 0; i < nbOctave; i++) {
99 for (uint i = 0; i < nbOctave; i++) {
static int modf_to_index(Freestyle::real x, uint range)
Class to define a pseudo Perlin noise.
Pseudo-random number generator.
real turbulenceLinear(real x, uint nbOctave=8)
static real _values[NB_VALUE_NOISE]
static const uint NB_VALUE_NOISE
static void init(long seed)
real turbulenceSmooth(real x, uint nbOctave=8)
static void srand48(long seedval)
ccl_device_inline dual3 fabs(const ccl_private dual3 &a)
static const real M_EPSILON
static real LanczosWindowed(real t)