aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-03-21 15:54:03 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:51 +0100
commite762b9d1a0080bfbba36d1b53ada858d05e13db1 (patch)
tree023a40ea5b40c7db7b4212439b61182d9388ff3b /src/utils
parent28f2baea42e44011c23b89473028b9bfc0376c00 (diff)
downloadusdx-e762b9d1a0080bfbba36d1b53ada858d05e13db1.tar.gz
usdx-e762b9d1a0080bfbba36d1b53ada858d05e13db1.tar.xz
usdx-e762b9d1a0080bfbba36d1b53ada858d05e13db1.zip
utils/rectangle: added shortcut for accessing the position of a rectangle
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/rectangle.hpp10
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();