Sliced ext relational extensions

This commit is contained in:
Christophe Riccio
2018-08-01 12:10:27 +02:00
parent a71d553435
commit 428a468d13
11 changed files with 328 additions and 87 deletions

View File

@@ -0,0 +1,32 @@
#include <glm/ext/matrix_relational.hpp>
#include <glm/mat4x3.hpp>
int test_equal()
{
int Error = 0;
Error += glm::all(glm::equal(glm::mat4x3(1), glm::mat4x3(1), 0.001f)) ? 0 : 1;
Error += glm::all(glm::equal(glm::mat4x3(1), glm::mat4x3(2), glm::vec4(0.001f))) ? 1 : 0;
return Error;
}
int test_notEqual()
{
int Error = 0;
Error += !glm::any(glm::notEqual(glm::mat4x3(1), glm::mat4x3(1), 0.001f)) ? 0 : 1;
Error += !glm::any(glm::notEqual(glm::mat4x3(1), glm::mat4x3(2), glm::vec4(0.001f))) ? 1 : 0;
return Error;
}
int main()
{
int Error = 0;
Error += test_equal();
Error += test_notEqual();
return Error;
}