home *** CD-ROM | disk | FTP | other *** search
/ Point Programming 1 / PPROG1.ISO / c / snippets / pi.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-03  |  121 b   |  7 lines

  1. #ifndef PI
  2.  #define PI         (4*atan(1))
  3. #endif
  4.  
  5. #define deg2rad(d) ((d)*PI/180)
  6. #define rad2deg(r) ((r)*180/PI)
  7.