From 3fde3ce4964539064f1de9a7070f980bef33aa88 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 7 Jan 2019 10:02:59 +0100 Subject: api/plugin: add helper members to `enum Axis' --- api/plugin-api.hpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'api/plugin-api.hpp') 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; -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 { -- cgit v1.2.3