diff --git a/libs/geom/include/psemek/geom/box.hpp b/libs/geom/include/psemek/geom/box.hpp index b61fa5f1..71f97447 100644 --- a/libs/geom/include/psemek/geom/box.hpp +++ b/libs/geom/include/psemek/geom/box.hpp @@ -241,6 +241,21 @@ namespace psemek::geom return *this = *this | b; } + template + bool operator == (box const & b1, box const & b2) + { + for (std::size_t i = 0; i < N; ++i) + if (b1[i] != b2[i]) + return false; + return true; + } + + template + bool operator != (box const & b1, box const & b2) + { + return !(b1 == b2); + } + template std::ostream & operator << (std::ostream & os, box const & b) {