diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/rectangle.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/rectangle.hpp b/src/utils/rectangle.hpp index 1d8abda2..33b9c763 100644 --- a/src/utils/rectangle.hpp +++ b/src/utils/rectangle.hpp @@ -117,6 +117,11 @@ namespace usdx point2.set_x(value + width); } + const Dimension<T> get_dim() const + { + return Dimension<T> (get_width(), get_height()); + } + const T get_right(void) const { return Math::max(point1.get_x(), point2.get_x()); |