mirror of
https://github.com/g-truc/glm.git
synced 2024-11-14 22:14:35 +00:00
Added test_isOrthogonal for zero matrix
This commit is contained in:
parent
2c74560914
commit
aa4d729e48
@ -45,8 +45,14 @@ int test_isOrthogonal()
|
|||||||
{
|
{
|
||||||
int Error(0);
|
int Error(0);
|
||||||
|
|
||||||
|
{
|
||||||
bool TestA = glm::isOrthogonal(glm::mat4(1), 0.00001f);
|
bool TestA = glm::isOrthogonal(glm::mat4(1), 0.00001f);
|
||||||
Error += TestA ? 0 : 1;
|
Error += TestA ? 0 : 1;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
bool TestA = glm::isOrthogonal(glm::mat4(0), 0.00001f);
|
||||||
|
Error += TestA ? 1 : 0;
|
||||||
|
}
|
||||||
|
|
||||||
return Error;
|
return Error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user