mirror of https://github.com/AxioDL/zeus.git
Alternate CAABox::accumulateBounds
This commit is contained in:
parent
4a5d21e9b8
commit
f590255b5f
|
@ -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 &&
|
||||||
|
|
Loading…
Reference in New Issue