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.14 by greg, Fri Sep 6 16:54:06 2013 UTC vs.
Revision 2.16 by greg, Wed Jul 30 17:30:27 2014 UTC

# Line 6 | Line 6
6   *                              1 Avenue Eugene Freyssinet, Saint-Quentin-Yvelines, France
7   */
8  
9 + #define  _USE_MATH_DEFINES
10   #include  <stdio.h>
11   #include  <string.h>
12   #include  <math.h>
# Line 16 | Line 17
17   #include  "paths.h"
18  
19   #define  DOT(v1,v2)     (v1[0]*v2[0]+v1[1]*v2[1]+v1[2]*v2[2])
19 #define  _USE_MATH_DEFINES
20  
21   double  normsc();
22  
# Line 102 | Line 102 | double  solar_sunset(int month, int day);
102   double  solar_sunrise(int month, int day);
103   double  stadj();
104   int     jdate(int month, int day);
105
106
107 /* sun calculation constants */
108 extern double   s_latitude;
109 extern double   s_longitude;
110 extern double   s_meridian;
105  
106   const double    AU = 149597890E3;
107   const double    solar_constant_e = 1367;    /* solar constant W/m^2 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines