summaryrefslogtreecommitdiff
path: root/core/math/rect2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/math/rect2.cpp')
-rw-r--r--core/math/rect2.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/math/rect2.cpp b/core/math/rect2.cpp
index 60c44999f7..f64bf560c8 100644
--- a/core/math/rect2.cpp
+++ b/core/math/rect2.cpp
@@ -263,3 +263,11 @@ next4:
return true;
}
+
+Rect2::operator String() const {
+ return "[P: " + position.operator String() + ", S: " + size + "]";
+}
+
+Rect2i::operator String() const {
+ return "[P: " + position.operator String() + ", S: " + size + "]";
+}