From 22a777174de684f946e83ed5da564db101bcdf83 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 21 Mar 2012 15:48:38 +0100 Subject: utils/point: added possibility to change coords --- src/utils/point.hpp | 10 ++++++++++ src/utils/point_3d.hpp | 5 +++++ 2 files changed, 15 insertions(+) (limited to 'src') 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) { diff --git a/src/utils/point_3d.hpp b/src/utils/point_3d.hpp index 1ce2a313..12540b26 100644 --- a/src/utils/point_3d.hpp +++ b/src/utils/point_3d.hpp @@ -53,6 +53,11 @@ namespace usdx { return z; } + + void get_z(const T& value) + { + z = value; + } }; }; -- cgit v1.2.3