home *** CD-ROM | disk | FTP | other *** search
/ Explore the World of Soft…e: Engineering & Science / Explore_the_World_of_Software_Engineering_and_Science_HRS_Software_1998.iso / programs / datetime / sunclock.exe / SUNCLOCK.H < prev    next >
Text File  |  1991-03-26  |  760b  |  22 lines

  1. /*
  2.  * Sun clock definitions.
  3.  */
  4.  
  5. #include <stdio.h>
  6. #include <math.h>
  7. #include <time.h>
  8. #include "bitmaps.h"
  9.  
  10. #define abs(x) ((x) < 0 ? (-(x)) : x)                     /* Absolute value */
  11. #define sgn(x) (((x) < 0) ? -1 : ((x) > 0 ? 1 : 0))       /* Extract sign */
  12. #define dtr(x) ((x) * (PI / 180.0))                       /* Degree->Radian */
  13. #define rtd(x) ((x) / (PI / 180.0))                       /* Radian->Degree */
  14. #define fixangle(a) ((a) - 360.0 * (floor((a) / 360.0)))  /* Fix angle    */
  15.  
  16. #define PI 3.14159265358979323846
  17.  
  18. #define TERMINC  100               /* Circle segments for terminator */
  19.  
  20. #define PROJINT  (60 * 10)         /* Frequency of seasonal recalculation
  21.                                       in seconds. */
  22.