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

Comparing ray/src/gen/gendaylit.c (file contents):
Revision 2.19 by greg, Wed Dec 4 18:11:57 2019 UTC vs.
Revision 2.20 by greg, Wed Nov 18 17:18:41 2020 UTC

# Line 1427 | Line 1427 | void coeff_lum_perez(double Z, double epsilon, double
1427   /* degrees into radians */
1428   double radians(double degres)
1429   {
1430 <        return degres*M_PI/180.0;
1430 >        return degres*(M_PI/180.);
1431   }
1432  
1433  
1434   /* radian into degrees */
1435   double degres(double radians)
1436   {
1437 <        return radians/M_PI*180.0;
1437 >        return radians*(180./M_PI);
1438   }
1439  
1440  
# Line 1465 | Line 1465 | double integ_lv(float *lv,float *theta)
1465                  buffer += (*(lv+i))*cos(radians(*(theta+i)));
1466          }
1467                          
1468 <        return buffer*2*M_PI/144;
1468 >        return buffer*(2.*M_PI/145.);
1469   }
1470  
1471  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines