46 return x1 * (1 - t) + x2 * t;
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 float2 fabs(const float2 a)
static const real M_EPSILON
static real LanczosWindowed(real t)