some convenience features added to AABox and AACube

This commit is contained in:
ZappoMan 2014-06-17 08:36:45 -07:00
parent d7a1686022
commit cefbd765da
2 changed files with 8 additions and 0 deletions

View file

@ -66,4 +66,8 @@ private:
glm::vec3 _scale;
};
inline bool operator==(const AABox& a, const AABox& b) {
return a.getCorner() == b.getCorner() && a.getDimensions() == b.getDimensions();
}
#endif // hifi_AABox_h

View file

@ -61,4 +61,8 @@ private:
float _scale;
};
inline bool operator==(const AACube& a, const AACube& b) {
return a.getCorner() == b.getCorner() && a.getScale() == b.getScale();
}
#endif // hifi_AACube_h