mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 04:31:47 +00:00
Add test case for glm::angle() sign bug introduced by #946
This commit is contained in:
parent
b3f8772026
commit
2bb0fb3999
@ -21,6 +21,12 @@ static int test_angle()
|
||||
Error += glm::equal(A, 90.0f, Epsilon) ? 0 : 1;
|
||||
}
|
||||
|
||||
{
|
||||
glm::quat const Q = glm::angleAxis(glm::two_pi<float>() - 1.0f, glm::vec3(1, 0, 0));
|
||||
float const A = glm::angle(Q);
|
||||
Error += glm::equal(A, 1.0f, Epsilon) ? 1 : 0;
|
||||
}
|
||||
|
||||
return Error;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user