helper: consider matrices with the same NANs and INFINITYs equal

to simplify bulk checks when these values are expected
This commit is contained in:
Matthias Grob
2019-09-17 21:02:21 +02:00
committed by Julian Kent
parent bbaa93880b
commit c34e8dc98f
3 changed files with 9 additions and 12 deletions
+4
View File
@@ -48,7 +48,11 @@ int main()
TEST(!isEqualF(1.f, INFINITY));
TEST(isEqualF(NAN, NAN));
TEST(isEqualF(NAN, -NAN));
TEST(isEqualF(-NAN, NAN));
TEST(isEqualF(INFINITY, INFINITY));
TEST(!isEqualF(INFINITY, -INFINITY));
TEST(!isEqualF(-INFINITY, INFINITY));
TEST(isEqualF(-INFINITY, -INFINITY));
Vector3f a(1, 2, 3);
Vector3f b(4, 5, 6);