add compare operators in btAABB

This commit is contained in:
nicolaichuk
2017-03-23 14:21:49 +03:00
parent bbf54cb05c
commit 18f17be47d

View File

@@ -235,6 +235,23 @@ public:
btAABB() btAABB()
{} {}
bool operator<(const btAABB& obj) const {
return
m_min < obj.m_min &&
m_max < obj.m_max;
}
bool operator>(const btAABB& obj) const {
return
m_min > obj.m_min &&
m_max > obj.m_max;
}
bool operator==(const btAABB& obj) const {
return
m_min == obj.m_min &&
m_max == obj.m_max;
}
btAABB(const btVector3 & V1, btAABB(const btVector3 & V1,
const btVector3 & V2, const btVector3 & V2,