home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 3 / RISC_DISC_3.iso / resources / etexts / gems / gemsv / ch7_7 / libgm / gmconst.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-07  |  1.4 KB  |  40 lines

  1. // gmConst.h - graphics math constants
  2. //
  3. // libgm++: Graphics Math Library
  4. // Ferdi Scheepers and Stephen F May
  5. // 15 June 1994
  6.  
  7. #ifndef GMCONST_H
  8. #define GMCONST_H
  9.  
  10. // USEFUL CONSTANTS
  11.  
  12. double const gm2PI =       6.28318530717958623200;
  13. double const gmDEGTORAD =  0.01745329251994329547;
  14. double const gmE =         2.71828182845904553488;
  15. double const gmEEXPPI =   23.14069263277927390732;
  16. double const gmGOLDEN =    1.61803398874989490253;
  17. double const gmINVPI =     0.31830988618379069122;
  18. double const gmLN10 =      2.30258509299404590109;
  19. double const gmLN2 =       0.69314718055994528623;
  20. double const gmLOG10E =    0.43429448190325187218;
  21. double const gmLOG2E =     1.44269504088896338700;
  22. double const gmPI =        3.14159265358979323846;
  23. double const gmPIDIV2 =    1.57079632679489655800;
  24. double const gmPIDIV4 =    0.78539816339744827900;
  25. double const gmRADTODEG = 57.29577951308232286465;
  26. double const gmSQRT2 =     1.41421356237309514547;
  27. double const gmSQRT2PI =   2.50662827463100024161;
  28. double const gmSQRT3 =     1.73205080756887719318;
  29. double const gmSQRT10 =    3.16227766016837952279;
  30. double const gmSQRTE =     1.64872127070012819416;
  31. double const gmSQRTHALF =  0.70710678118654757274;
  32. double const gmSQRTLN2 =   0.83255461115769768821;
  33. double const gmSQRTPI =    1.77245385090551588192;
  34. double const gmEPSILON =   1.0e-10;
  35. double const gmGOOGOL =    1.0e50;
  36.  
  37. #endif
  38.  
  39.  
  40.