diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-19 13:28:29 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:56 +0200 |
commit | 3dbf3b68c484704aafcda9fd05ae88a0337956ef (patch) | |
tree | b7a2d45811c0ed5e336f87c23369f3929322b0cc /src/engine/data/bounds.hpp | |
parent | 55c93fe609888be73677317978959040cf35b2ff (diff) |
feat: add inserting cells
Diffstat (limited to 'src/engine/data/bounds.hpp')
-rw-r--r-- | src/engine/data/bounds.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/engine/data/bounds.hpp b/src/engine/data/bounds.hpp index 4a29158..ccea2c3 100644 --- a/src/engine/data/bounds.hpp +++ b/src/engine/data/bounds.hpp @@ -36,9 +36,11 @@ public: [[nodiscard]] CoordsValidation validate_coords(const Vector2 &coords) const noexcept; - const Bounds &operator*=(const Bounds &bounds) noexcept; - const Bounds &operator+=(const Bounds &bounds) noexcept; - const Bounds &operator-=(const Bounds &bounds) noexcept; + const Bounds &operator*=(const Bounds &rhs) noexcept; + const Bounds &operator+=(const Bounds &rhs) noexcept; + const Bounds &operator-=(const Bounds &rhs) noexcept; + + Bounds operator-(const Bounds &rhs) const noexcept; private: Value _width = 0U; |