mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 02:30:35 +08:00
helper: consider matrices with the same NANs and INFINITYs equal
to simplify bulk checks when these values are expected
This commit is contained in:
committed by
Julian Kent
parent
bbaa93880b
commit
c34e8dc98f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user