# | Line 1 | Line 1 | |
---|---|---|
1 | < | /* |
1 | > | /* |
2 | * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. | |
3 | * | |
4 | * The University of Notre Dame grants you ("Licensee") a | |
# | Line 39 | Line 39 | |
39 | * such damages. | |
40 | */ | |
41 | ||
42 | < | /** |
43 | < | * @file NumericConstant.hpp |
44 | < | * @author teng lin |
45 | < | * @date 11/17/2004 |
46 | < | * @time 23:33am |
47 | < | * @version 1.0 |
48 | < | */ |
42 | > | /** |
43 | > | * @file NumericConstant.hpp |
44 | > | * @author teng lin |
45 | > | * @date 11/17/2004 |
46 | > | * @time 23:33am |
47 | > | * @version 1.0 |
48 | > | */ |
49 | ||
50 | #ifndef UTILS_NUMERICCONSTANT_HPP | |
51 | #define UTILS_NUMERICCONSTANT_HPP | |
52 | #include <cmath> | |
53 | + | #include <limits> |
54 | namespace oopse { | |
55 | ||
56 | < | /** |
57 | < | * @class NumericConstant NumericConstant.hpp "utils/NumericConstant.hpp" |
58 | < | * @todo document |
59 | < | */ |
60 | < | namespace NumericConstant { |
56 | > | /** |
57 | > | * @class NumericConstant NumericConstant.hpp "utils/NumericConstant.hpp" |
58 | > | * @todo document |
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; |
65 | < | } |
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 | ||
68 | } //end namespace oopse |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |