X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=tst%2Fvector_assert.hpp;fp=tst%2Fvector_assert.hpp;h=12602c5a82d649419c78fae6a6027169d1dcde11;hb=57f81dc2a126e77e48e8962a9d6730c59ffddbda;hp=0000000000000000000000000000000000000000;hpb=2e761a60d1717297b7e308ef1b66e2a81319fdff;p=tacos.git diff --git a/tst/vector_assert.hpp b/tst/vector_assert.hpp new file mode 100644 index 0000000..12602c5 --- /dev/null +++ b/tst/vector_assert.hpp @@ -0,0 +1,22 @@ +#ifndef TACOS_TEST_VECTOR_ASSERT_HPP_ +#define TACOS_TEST_VECTOR_ASSERT_HPP_ + +#include +#include +#include + + +namespace tacos { +namespace test { + +/// assert that given vectors are equal enough according to given epsilon +void AssertEqual( + const std::string &message, + const glm::vec3 &expected, + const glm::vec3 &actual, + float epsilon = std::numeric_limits::epsilon()); + +} +} + +#endif