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

Comparing ray/src/util/glare.h (file contents):
Revision 1.15 by greg, Fri Apr 19 17:41:02 1991 UTC vs.
Revision 1.16 by greg, Mon Apr 22 10:28:10 1991 UTC

# Line 40 | Line 40 | extern int     hsize;                  /* horizontal size */
40  
41   #define nglardirs       (2*nglarangs+1)
42   #define vsize           (sampdens-1)
43 < #define hscale(v)       sqrt(1.-(double)((v)*(v)/(sampdens*sampdens)))
44 < #define hlim(v)         (int)(maxtheta*sampdens*hscale(v))
45 < #define h_theta(h,v)    (-(h)/(sampdens*hscale(v)))
43 > #define hscale(v)       sqrt((double)(sampdens*sampdens - (v)*(v)))
44 > #define hlim(v)         (int)(maxtheta*hscale(v))
45 > #define h_theta(h,v)    (-(h)/hscale(v))
46  
47   extern struct illum {
48          float   theta;          /* glare direction */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines