From 69b384e48cc9315025ffa2f4000c94d57c9884d4 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Thu, 14 Apr 2016 11:42:16 -1000 Subject: [PATCH] Const correctness on some CAABox methods --- include/zeus/CAABox.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/zeus/CAABox.hpp b/include/zeus/CAABox.hpp index 4cdb6e0..c2359d8 100644 --- a/include/zeus/CAABox.hpp +++ b/include/zeus/CAABox.hpp @@ -200,7 +200,7 @@ public: } } - inline CAABox getTransformedAABox(const CTransform& xfrm) + inline CAABox getTransformedAABox(const CTransform& xfrm) const { CAABox box; CVector3f point = xfrm * getPoint(0); @@ -251,7 +251,7 @@ public: m_min.z <= other.z && other.z <= m_max.z); } - inline CVector3f closestPointAlongVector(const CVector3f& other) + inline CVector3f closestPointAlongVector(const CVector3f& other) const { CVector3f center = this->center(); return {(other.x < center.x ? m_min.x : m_max.x), @@ -259,7 +259,7 @@ public: (other.z < center.z ? m_min.z : m_max.z)}; } - inline CVector3f furthestPointAlongVector(const CVector3f& other) + inline CVector3f furthestPointAlongVector(const CVector3f& other) const { CVector3f center = this->center(); return {(other.x < center.x ? m_max.x : m_min.x), @@ -267,7 +267,7 @@ public: (other.z < center.z ? m_max.z : m_min.z)}; } - inline CVector3f getPoint(const int point) + inline CVector3f getPoint(const int point) const { int zOff = point & 4; int yOff = (point * 2) & 4;