master
ブランチ master
ShaderPlayground / deps / glm / glm / ext / scalar_relational.inl
404 B、16行 生 Blame 履歴
1#include "../common.hpp"
2
3namespace 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