MathUtil.h revision 10447:a465576671d4
1#ifndef __MATH_H__
2#define __MATH_H__
3
4#include <cmath>
5
6namespace LibUtil
7{
8    class Math
9    {
10        public:
11            static const double epsilon;
12
13            static inline bool isEqual(double value1_, double value2_)
14            {
15                return (std::fabs(value1_ - value2_) < epsilon);
16            }
17    };
18} // namespace LibUtil
19
20#endif // __MATH_H__
21
22