| # | Line 50 | Line 50 | |
|---|---|---|
| 50 | #ifndef UTILS_NUMERICCONSTANT_HPP | |
| 51 | #define UTILS_NUMERICCONSTANT_HPP | |
| 52 | #include <cmath> | |
| 53 | + | #include <limits> |
| 54 | namespace oopse { | |
| 55 | ||
| 56 | /** | |
| # | Line 58 | Line 59 | namespace oopse { | |
| 59 | */ | |
| 60 | namespace NumericConstant { | |
| 61 | ||
| 62 | < | static const double epsilon = 0.000001; |
| 63 | < | static const double PI = M_PI; |
| 64 | < | static const double TWO_PI = 2.0 * PI; |
| 62 | > | static const RealType epsilon = std::numeric_limits<RealType>::epsilon(); |
| 63 | > | static const RealType PI = M_PI; |
| 64 | > | static const RealType TWO_PI = 2.0 * PI; |
| 65 | } | |
| 66 | ||
| 67 | ||
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |