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

Comparing ray/src/util/findglare.c (file contents):
Revision 1.19 by greg, Fri Apr 19 17:40:59 1991 UTC vs.
Revision 1.21 by greg, Mon Apr 22 10:11:23 1991 UTC

# Line 190 | Line 190 | char   *argv[];
190          fputs(VIEWSTR, stdout);
191          fprintview(&ourview, stdout);
192          printf("\n");
193 <        fputformat("ASCII", stdout);
193 >        fputformat("ascii", stdout);
194          printf("\n");
195          printsources();                         /* print glare sources */
196          printillum();                           /* print illuminances */
# Line 330 | Line 330 | int    x, y;
330                  xo = x-hl;
331          else
332                  xo = 0;
333 <        disc = 1. - (xo*xo + y*y)/(sampdens*sampdens);
333 >        disc = 1. - (double)(xo*xo + y*y)/(sampdens*sampdens);
334          if (disc <= FTINY)
335                  return(0.);
336          return(1./(sampdens*sampdens*sqrt(disc)));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines