ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/sun.h
Revision: 2.2
Committed: Wed Jul 30 17:30:27 2014 UTC (8 years, 10 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad5R0, rad5R2, rad4R2P2, rad4R2P1, rad5R1, rad4R2
Changes since 2.1: +5 -1 lines
Log Message:
Improved use of sun.h

File Contents

# Content
1 /* RCSid $Id: sun.h,v 2.1 2013/08/09 16:51:15 greg Exp $ */
2 /*
3 * Header file for solar position calculations
4 */
5
6 #ifndef _RAD_SUN_H_
7 #define _RAD_SUN_H_
8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 /* sun calculation constants */
13 extern double s_latitude;
14 extern double s_longitude;
15 extern double s_meridian;
16
17 extern int jdate(int month, int day);
18 extern double stadj(int jd);
19 extern double sdec(int jd);
20 extern double salt(double sd, double st);
21 extern double sazi(double sd, double st);
22
23 #ifdef __cplusplus
24 }
25 #endif
26
27 #endif /* _RAD_SUN_H_ */