| 1 | #include "../common.hpp" |
| 2 | |
| 3 | namespace glm |
| 4 | { |
| 5 | template<typename genType> |
| 6 | GLM_FUNC_QUALIFIER GLM_CONSTEXPR bool equal(genType const& x, genType const& y, genType const& epsilon) |
| 7 | { |
| 8 | return abs(x - y) <= epsilon; |
| 9 | } |
| 10 | |
| 11 | template<typename genType> |
| 12 | GLM_FUNC_QUALIFIER GLM_CONSTEXPR bool notEqual(genType const& x, genType const& y, genType const& epsilon) |
| 13 | { |
| 14 | return abs(x - y) > epsilon; |
| 15 | } |
| 16 | }//namespace glm |