summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-01-07 10:02:59 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-16 07:48:21 +0100
commit3fde3ce4964539064f1de9a7070f980bef33aa88 (patch)
tree1162a4151cf53b63020397a79ce6d5a8dbb5f9dd
parent04f761afc7e7297a4cbc2a23f118fca4c5c25f5d (diff)
api/plugin: add helper members to `enum Axis'
-rw-r--r--api/plugin-api.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/api/plugin-api.hpp b/api/plugin-api.hpp
index 3950ade0..a4573c85 100644
--- a/api/plugin-api.hpp
+++ b/api/plugin-api.hpp
@@ -21,10 +21,15 @@
using Pose = Mat<double, 6, 1>;
-enum Axis {
- TX, TY, TZ, Yaw, Pitch, Roll,
-
+enum Axis : int
+{
NonAxis = -1,
+ TX = 0, TY = 1, TZ = 2,
+
+ Yaw = 3, Pitch = 4, Roll = 5,
+ Axis_MIN = TX, Axis_MAX = 5,
+
+ AXIS_COUNT = 6,
};
namespace plugin_api::detail {