mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 18:23:22 +02:00
some convenience features added to AABox and AACube
This commit is contained in:
parent
d7a1686022
commit
cefbd765da
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue