diff options
Diffstat (limited to 'src/helpers/Box.cpp')
| -rw-r--r-- | src/helpers/Box.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/helpers/Box.cpp b/src/helpers/Box.cpp index 29aa81fa..3d57bc79 100644 --- a/src/helpers/Box.cpp +++ b/src/helpers/Box.cpp @@ -112,6 +112,10 @@ CBox CBox::roundInternal() { return CBox{std::floor(x), std::floor(y), std::floor(newW), std::floor(newH)}; } +CBox CBox::copy() const { + return CBox{*this}; +} + Vector2D CBox::pos() const { return {x, y}; } |
