add compare operators in btAABB
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user