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

@@ -234,7 +234,24 @@ public:
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,
const btVector3 & V2,