minor change

This commit is contained in:
2018-07-03 11:08:41 +02:00
parent 039f9c4cee
commit fb8061125f

View File

@@ -106,7 +106,7 @@ public:
}
BBox2 intersection(const BBox2& o) {
BBox2 intersection(const BBox2& o) const {
// TODO is this correct?
const float x1 = std::max(p1.x, o.p1.x);
const float x2 = std::min(p2.x, o.p2.x);