summaryrefslogtreecommitdiffhomepage
path: root/logic
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-11-18 21:00:20 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-11-18 21:00:20 +0100
commit322a6f008627f6beb389ea47c7a2c8d4f02a6261 (patch)
treee696004fe55d7c3e3ed3274307f4ce028140ce56 /logic
parent31ce79a7acd7d7667e20906e265d7451fa1c353f (diff)
logic/tracker: avoid exposing struct bits and Pose type alias
Diffstat (limited to 'logic')
-rw-r--r--logic/tracker.cpp1
-rw-r--r--logic/tracker.h6
2 files changed, 7 insertions, 0 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp
index 61905837..9f4c3617 100644
--- a/logic/tracker.cpp
+++ b/logic/tracker.cpp
@@ -26,6 +26,7 @@
#endif
using namespace euler;
+using namespace gui_tracker_impl;
constexpr double Tracker::r2d;
constexpr double Tracker::d2r;
diff --git a/logic/tracker.h b/logic/tracker.h
index b9012910..ddb71b44 100644
--- a/logic/tracker.h
+++ b/logic/tracker.h
@@ -29,6 +29,8 @@
#include "export.hpp"
+namespace gui_tracker_impl {
+
using Pose = Mat<double, 6, 1>;
struct bits
@@ -115,3 +117,7 @@ public:
void zero() { negate(f_zero); }
void toggle_enabled() { negate(f_enabled); }
};
+
+} // ns impl
+
+using gui_tracker_impl::Tracker;