mirror of https://github.com/g-truc/glm.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
306 B
C++
16 lines
306 B
C++
#define GLM_ENABLE_EXPERIMENTAL
|
|
#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;
|
|
}
|
|
|