ES-DE/test/gtx/gtx_exterior_product.cpp
Leon Styhre 0116f4b65d Squashed 'external/glm/' content from commit bf71a8349
git-subtree-dir: external/glm
git-subtree-split: bf71a834948186f4097caa076cd2663c69a10e1e
2021-08-13 15:26:10 +02:00

15 lines
274 B
C++

#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;
}