mirror of
https://github.com/g-truc/glm.git
synced 2024-11-22 17:04:35 +00:00
fix reciprocal test
This commit is contained in:
parent
da542d6354
commit
c31b5aecaa
@ -130,8 +130,8 @@ static int test_acsch()
|
||||
{
|
||||
int Error = 0;
|
||||
|
||||
Error += glm::acsch(glm::dvec1(0.0001)).x > 10000.0, 0.01 ? 0 : 1;
|
||||
Error += glm::acsch(glm::dvec1(-0.0001)).x < -10000.0, 0.01 ? 0 : 1;
|
||||
Error += glm::acsch(glm::dvec1(0.0001)).x > 10000.0 ? 0 : 1;
|
||||
Error += glm::acsch(glm::dvec1(-0.0001)).x < -10000.0 ? 0 : 1;
|
||||
|
||||
Error += glm::all(glm::equal(glm::acsch(glm::dvec1(100.0)), glm::dvec1(0.0), 0.01)) ? 0 : 1;
|
||||
Error += glm::all(glm::equal(glm::acsch(glm::dvec1(-100.0)), glm::dvec1(0.0), 0.01)) ? 0 : 1;
|
||||
|
Loading…
Reference in New Issue
Block a user