Alternate CAABox::accumulateBounds

This commit is contained in:
Jack Andersen 2016-02-11 12:37:50 -10:00
parent 4a5d21e9b8
commit f590255b5f
1 changed files with 6 additions and 0 deletions

View File

@ -240,6 +240,12 @@ public:
m_max.z = point.z; m_max.z = point.z;
} }
inline void accumulateBounds(const CAABox& other)
{
accumulateBounds(other.m_min);
accumulateBounds(other.m_max);
}
inline bool pointInside(const CVector3f& other) const inline bool pointInside(const CVector3f& other) const
{ {
return (m_min.x <= other.x && other.x <= m_max.z && return (m_min.x <= other.x && other.x <= m_max.z &&