aboutsummaryrefslogtreecommitdiffstats
path: root/utils/sofa-info.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-12-08 19:23:16 -0800
committerChris Robinson <[email protected]>2019-12-08 19:23:16 -0800
commitf4b3c3b4da3718ea76c5a07045aca73f32a38e9c (patch)
tree87297fef65d9392659109f90f116fa79d911ab4e /utils/sofa-info.cpp
parent7ded42cb94d555b33891f59ec7fc86b710318ebb (diff)
Simplify a check
Diffstat (limited to 'utils/sofa-info.cpp')
-rw-r--r--utils/sofa-info.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/sofa-info.cpp b/utils/sofa-info.cpp
index 7f37a5a5..b7346939 100644
--- a/utils/sofa-info.cpp
+++ b/utils/sofa-info.cpp
@@ -237,7 +237,7 @@ static void PrintCompatibleLayout(const uint m, const float *xyzs)
{
auto azims = GetUniquelySortedElems(aers, 0, {nullptr, &ev, &dist}, {0.1, 0.1, 0.001});
- if(std::abs(90.0 - std::abs(ev)) < 0.1)
+ if(std::abs(ev) > 89.999)
return azims.size() != 1;
if(azims.empty() || !(std::abs(azims[0]) < 0.1))
return true;