From 980a2c0913910fdbaac02a1ce8230d445aee894c Mon Sep 17 00:00:00 2001
From: Yoel <s73017@beuth-hochschule.de>
Date: Wed, 20 Jan 2021 13:51:11 +0100
Subject: [PATCH] More contain fixes

---
 RayTracer/tools/AxisAlignedBoundingBox.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/RayTracer/tools/AxisAlignedBoundingBox.cpp b/RayTracer/tools/AxisAlignedBoundingBox.cpp
index 69c3945..e3361e6 100644
--- a/RayTracer/tools/AxisAlignedBoundingBox.cpp
+++ b/RayTracer/tools/AxisAlignedBoundingBox.cpp
@@ -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.maxBound().z())};
 	for (Vec3 v : vertices)
-		if (bb.contains(v)) return true;
+		if (contains(v)) return true;
 	return false;
 }
 Vec3 AxisAlignedBoundingBox::center() const {
-- 
GitLab