ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/genmarble.c
(Generate patch)

Comparing ray/src/gen/genmarble.c (file contents):
Revision 2.1 by greg, Tue Nov 12 17:04:39 1991 UTC vs.
Revision 2.3 by greg, Fri Jun 4 14:31:11 1993 UTC

# Line 12 | Line 12 | static char SCCSid[] = "$SunId$ LBL";
12  
13   #include  <stdio.h>
14  
15 + #include  <math.h>
16 +
17   #include  "random.h"
18  
17
19   #define  PI     3.14159265359
20  
21   typedef double  FVECT[3];
# Line 26 | Line 27 | main(argc, argv)
27   int  argc;
28   char  **argv;
29   {
29        double  atof();
30          char  *cmtype, *cname;
31          FVECT  cent;
32          double  rad;
# Line 73 | Line 73 | bubble(v, cent, rad, bubrad)   /* compute location of ra
73   FVECT  v, cent;
74   double  rad, bubrad;
75   {
76        double  sqrt();
76          double  r, ro, theta, phi;
77  
78          r = frandom()*bubrad;
# Line 90 | Line 89 | sphere_cart(v, ro, theta, phi) /* spherical to cartesi
89   FVECT  v;
90   double  ro, theta, phi;
91   {
93        double  sin(), cos();
92          double  d;
93          
94          d = sin(phi);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines