--- ray/src/gen/genmarble.c 1991/11/12 17:04:39 2.1 +++ ray/src/gen/genmarble.c 1993/06/04 14:31:11 2.3 @@ -12,9 +12,10 @@ static char SCCSid[] = "$SunId$ LBL"; #include +#include + #include "random.h" - #define PI 3.14159265359 typedef double FVECT[3]; @@ -26,7 +27,6 @@ main(argc, argv) int argc; char **argv; { - double atof(); char *cmtype, *cname; FVECT cent; double rad; @@ -73,7 +73,6 @@ bubble(v, cent, rad, bubrad) /* compute location of ra FVECT v, cent; double rad, bubrad; { - double sqrt(); double r, ro, theta, phi; r = frandom()*bubrad; @@ -90,7 +89,6 @@ sphere_cart(v, ro, theta, phi) /* spherical to cartesi FVECT v; double ro, theta, phi; { - double sin(), cos(); double d; d = sin(phi);