Skip to content
Snippets Groups Projects
Unverified Commit fda62168 authored by williamfgc's avatar williamfgc Committed by GitHub
Browse files

Merge pull request #370 from pnorbert/fix369

fix IntersectionBox() check
parents 9ee54039 9d3b08e1
No related branches found
No related tags found
No related merge requests found
......@@ -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