summaryrefslogtreecommitdiff
path: root/ext/dsent/libutil/MathUtil.h
blob: 1f3341ee1cb73c2e7832d76a099568777631e963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __MATH_H__
#define __MATH_H__

#include <cmath>

namespace LibUtil
{
    class Math
    {
        public:
            static const double epsilon;

            static inline bool isEqual(double value1_, double value2_)
            {
                return (std::fabs(value1_ - value2_) < epsilon);
            }
    };
} // namespace LibUtil

#endif // __MATH_H__