synfig-core  1.0.3
random_noise.cpp File Reference

blehh More...

`#include <synfig/general.h>`
`#include "random_noise.h"`
`#include <synfig/quick_rng.h>`
`#include <cmath>`
`#include <cstdlib>`

## Macros

#define PI   (3.1415927)
#define f(j, i, k)   ((*this)(subseed,i,j,k))
#define P(x)   (((x)>0)?((x)*(x)*(x)):0.0f)
#define R(x)   ( P(x+2) - 4.0f*P(x+1) + 6.0f*P(x) - 4.0f*P(x-1) )*(1.0f/6.0f)
#define F(i, j)   ((*this)(subseed,i+x,j+y)*(R((i)-a)*R(b-(j))))
#define FT(i, j, k, l)   ((*this)(subseed,i+x,j+y,l)*(R((i)-a)*R(b-(j))*R((k)-c)))
#define Z(i, j)   ret+=F(i,j)
#define ZT(i, j, k, l)   ret+=FT(i,j,k,l)
#define X(i, j)
#define XT(i, j, k, l)

blehh

\$Id\$

## Macro Definition Documentation

 #define PI   (3.1415927)
 #define P ( x ) (((x)>0)?((x)*(x)*(x)):0.0f)
 #define R ( x ) ( P(x+2) - 4.0f*P(x+1) + 6.0f*P(x) - 4.0f*P(x-1) )*(1.0f/6.0f)
 #define F ( i, j ) ((*this)(subseed,i+x,j+y)*(R((i)-a)*R(b-(j))))
 #define FT ( i, j, k, l ) ((*this)(subseed,i+x,j+y,l)*(R((i)-a)*R(b-(j))*R((k)-c)))
 #define Z ( i, j ) ret+=F(i,j)
 #define ZT ( i, j, k, l ) ret+=FT(i,j,k,l)
 #define X ( i, j )
 #define XT ( i, j, k, l )