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.20 by greg, Mon Apr 22 08:21:01 1991 UTC

# 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