5 Turbulence(int gens, int seed);
7 void update(double dt, double rate);
8 void setMagnitude(double mag);
9 void getTurbulence(double* loc, float alt, float* up, float* turbOut);
10 void offset(float* dist);
13 unsigned int hashrand(unsigned int i);
14 float lattice(unsigned int x, unsigned int y);
15 float iturb(unsigned int x, unsigned int y);
16 float fturb(double a, double b);
17 void mkimg(float* buf, int sz);
18 float cubenorm(float x, float y, float z);
19 void turblut(int x, int y, float* out);
28 float _x0, _x1, _y0, _y1, _z0, _z1;