75357b330c
Now using GLM instead of the custom math libraries. Sadly, this did not 100% fix the problem at hand but it does give some closure that the math is not the problem. Also it will be nice to have a general math library to not have to deal with creating every math function every time.
17 lines
404 B
C++
17 lines
404 B
C++
#include "../common.hpp"
|
|
|
|
namespace glm
|
|
{
|
|
template<typename genType>
|
|
GLM_FUNC_QUALIFIER GLM_CONSTEXPR bool equal(genType const& x, genType const& y, genType const& epsilon)
|
|
{
|
|
return abs(x - y) <= epsilon;
|
|
}
|
|
|
|
template<typename genType>
|
|
GLM_FUNC_QUALIFIER GLM_CONSTEXPR bool notEqual(genType const& x, genType const& y, genType const& epsilon)
|
|
{
|
|
return abs(x - y) > epsilon;
|
|
}
|
|
}//namespace glm
|