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

Comparing ray/src/gen/mkillum2.c (file contents):
Revision 2.6 by greg, Fri Jan 7 14:51:46 1994 UTC vs.
Revision 2.7 by greg, Tue Nov 7 17:50:44 1995 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1991 Regents of the University of California */
1 > /* Copyright (c) 1995 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 163 | Line 163 | char  *nm;
163                  nalt = nazi = 1;
164          else {
165                  n = 4.*PI * il->sampdens;
166 <                nalt = sqrt(n/PI) + .5;
167 <                nazi = PI*nalt + .5;
166 >                nalt = sqrt(2./PI*n) + .5;
167 >                nazi = PI/2.*nalt + .5;
168          }
169          n = nalt*nazi;
170          distarr = (float *)calloc(n, 3*sizeof(float));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines