]> git.localhorst.tv Git - tacos.git/blobdiff - tst/vector_assert.hpp
ray/floor intersection experiments
[tacos.git] / tst / vector_assert.hpp
diff --git a/tst/vector_assert.hpp b/tst/vector_assert.hpp
new file mode 100644 (file)
index 0000000..12602c5
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef TACOS_TEST_VECTOR_ASSERT_HPP_
+#define TACOS_TEST_VECTOR_ASSERT_HPP_
+
+#include <limits>
+#include <string>
+#include <glm/glm.hpp>
+
+
+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<float>::epsilon());
+
+}
+}
+
+#endif