Added is_valid method to BoundingBox.

This commit is contained in:
Patrick Shriwise 2019-09-08 22:55:41 -05:00
parent 3dc0d1ad5d
commit 0f730d213e

View file

@ -83,6 +83,13 @@ struct BoundingBox
return *this;
}
inline bool is_valid() {
return xmin <= xmax &&
ymin <= ymax &&
zmin <= zmax;
}
};
//==============================================================================