summaryrefslogtreecommitdiff
path: root/glm-master/test/gtx/gtx_exterior_product.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'glm-master/test/gtx/gtx_exterior_product.cpp')
-rw-r--r--glm-master/test/gtx/gtx_exterior_product.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/glm-master/test/gtx/gtx_exterior_product.cpp b/glm-master/test/gtx/gtx_exterior_product.cpp
new file mode 100644
index 0000000..a02c983
--- /dev/null
+++ b/glm-master/test/gtx/gtx_exterior_product.cpp
@@ -0,0 +1,14 @@
+#include <glm/gtx/exterior_product.hpp>
+#include <glm/gtc/epsilon.hpp>
+#include <glm/vec2.hpp>
+
+int main()
+{
+ int Error = 0;
+
+ float const f = glm::cross(glm::vec2(1.0f, 1.0f), glm::vec2(1.0f, 1.0f));
+ Error += glm::epsilonEqual(f, 0.0f, 0.001f) ? 0 : 1;
+
+ return Error;
+}
+