diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-03-21 15:48:38 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:51 +0100 |
commit | 22a777174de684f946e83ed5da564db101bcdf83 (patch) | |
tree | 45392184931c07a0c529a92f0749c0dfe9086268 /src/utils/point.hpp | |
parent | ddcaca8432c2caf57d1defade0c32e90c649554c (diff) | |
download | usdx-22a777174de684f946e83ed5da564db101bcdf83.tar.gz usdx-22a777174de684f946e83ed5da564db101bcdf83.tar.xz usdx-22a777174de684f946e83ed5da564db101bcdf83.zip |
utils/point: added possibility to change coords
Diffstat (limited to 'src/utils/point.hpp')
-rw-r--r-- | src/utils/point.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils/point.hpp b/src/utils/point.hpp index 6618e285..f897dbf6 100644 --- a/src/utils/point.hpp +++ b/src/utils/point.hpp @@ -60,11 +60,21 @@ namespace usdx return x; } + void set_x(const T& value) + { + x = value; + } + T get_y(void) const { return y; } + void set_y(const T& value) + { + y = value; + } + Point& operator+=(const Point &other) { |