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

Comparing ray/src/util/glaresrc.c (file contents):
Revision 1.8 by greg, Wed Mar 20 13:32:56 1991 UTC vs.
Revision 1.9 by greg, Thu Mar 21 14:53:56 1991 UTC

# Line 92 | Line 92 | double br;
92          register int    i;
93  
94          if (h <= -hlim) {                       /* left region */
95 <                d = (double)(h+hlim)/sampdens;
96 <                if (d <= -1.0+FTINY)
95 >                d = (double)(-h-hlim)/sampdens;
96 >                if (d >= 1.0-FTINY)
97                          return;
98                  tanb = d/sqrt(1.0-d*d);
99                  for (i = 0; i < nglardirs; i++) {
# Line 106 | Line 106 | double br;
106                  return;
107          }
108          if (h >= hlim) {                        /* right region */
109 <                d = (double)(h-hlim)/sampdens;
110 <                if (d >= 1.0-FTINY)
109 >                d = (double)(-h+hlim)/sampdens;
110 >                if (d <= -1.0+FTINY)
111                          return;
112                  tanb = d/sqrt(1.0-d*d);
113                  for (i = 0; i < nglardirs; i++) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines