PI.h 225 B

123456789101112
  1. #ifndef IGL_PI_H
  2. #define IGL_PI_H
  3. namespace igl
  4. {
  5. // Use standard mathematical constants' M_PI if available
  6. #ifdef M_PI
  7. const double PI = M_PI;
  8. #else
  9. const double PI = 3.1415926535897932384626433832795;
  10. #endif
  11. }
  12. #endif