Skip to content
Snippets Groups Projects
Commit 9d3b08e1 authored by Podhorszki, Norbert's avatar Podhorszki, Norbert
Browse files

fix IntersectionBox() check

parent 9ee54039
No related branches found
No related tags found
1 merge request!370fix IntersectionBox() check
......@@ -98,7 +98,7 @@ Box<Dims> IntersectionBox(const Box<Dims> &box1, const Box<Dims> &box2) noexcept
for (size_t d = 0; d < dimensionsSize; ++d)
{
// Don't intercept
if (box2.first[d] >= box1.second[d] || box2.second[d] <= box1.first[d])
if (box2.first[d] > box1.second[d] || box2.second[d] < box1.first[d])
{
return intersectionBox;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment