| # | Line 14 | Line 14 | static char SCCSid[] = "$SunId$ LBL"; | |
|---|---|---|
| 14 | * 5/19/88 Added fractal noise function | |
| 15 | */ | |
| 16 | ||
| 17 | + | #include <math.h> |
| 18 | ||
| 19 | #define A 0 | |
| 20 | #define B 1 | |
| # | Line 99 | Line 100 | double * | |
| 100 | noise3(xnew) /* compute the noise function */ | |
| 101 | register double xnew[3]; | |
| 102 | { | |
| 102 | – | extern double floor(); |
| 103 | static double x[3] = {-100000.0, -100000.0, -100000.0}; | |
| 104 | static double f[4]; | |
| 105 | ||
| # | Line 156 | Line 156 | double | |
| 156 | fnoise3(p) /* compute fractal noise function */ | |
| 157 | double p[3]; | |
| 158 | { | |
| 159 | – | double floor(); |
| 159 | long t[3], v[3], beg[3]; | |
| 160 | double fval[8], fc; | |
| 161 | int branch; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |