diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/rectangle.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils/rectangle.hpp b/src/utils/rectangle.hpp index 2131afc8..fc5d8ac3 100644 --- a/src/utils/rectangle.hpp +++ b/src/utils/rectangle.hpp @@ -85,6 +85,16 @@ namespace usdx return point2; } + const T get_x(void) const + { + return point1.get_x(); + } + + const T get_y(void) const + { + return point1.get_y(); + } + const T get_width(void) const { return point2.get_x() - point1.get_x(); |