Skip to content
Snippets Groups Projects
Commit 980a2c09 authored by Yoel's avatar Yoel
Browse files

More contain fixes

parent 80d88b2d
No related branches found
No related tags found
No related merge requests found
...@@ -123,7 +123,7 @@ bool AxisAlignedBoundingBox::partiallyContains( ...@@ -123,7 +123,7 @@ bool AxisAlignedBoundingBox::partiallyContains(
Vec3(bb.maxBound().x(), bb.maxBound().y(), bb.minBound().z()), Vec3(bb.maxBound().x(), bb.maxBound().y(), bb.minBound().z()),
Vec3(bb.maxBound().x(), bb.maxBound().y(), bb.maxBound().z())}; Vec3(bb.maxBound().x(), bb.maxBound().y(), bb.maxBound().z())};
for (Vec3 v : vertices) for (Vec3 v : vertices)
if (bb.contains(v)) return true; if (contains(v)) return true;
return false; return false;
} }
Vec3 AxisAlignedBoundingBox::center() const { Vec3 AxisAlignedBoundingBox::center() const {
......
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