summaryrefslogtreecommitdiff
path: root/src/helpers/Box.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers/Box.cpp')
-rw-r--r--src/helpers/Box.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/helpers/Box.cpp b/src/helpers/Box.cpp
index 450871cb..e71ed622 100644
--- a/src/helpers/Box.cpp
+++ b/src/helpers/Box.cpp
@@ -101,4 +101,12 @@ CBox CBox::roundInternal() {
float newH = y + h - std::floor(y);
return CBox{std::floor(x), std::floor(y), std::floor(newW), std::floor(newH)};
-} \ No newline at end of file
+}
+
+Vector2D CBox::pos() const {
+ return {x, y};
+}
+
+Vector2D CBox::size() const {
+ return {w, h};
+}