pi.h 219 B

12345678910111213
  1. /* +++Date last modified: 05-Jul-1997 */
  2. #ifndef PI__H
  3. #define PI__H
  4. #ifndef PI
  5. #define PI (4*atan(1))
  6. #endif
  7. #define deg2rad(d) ((d)*PI/180)
  8. #define rad2deg(r) ((r)*180/PI)
  9. #endif /* PI__H */