diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-07 10:02:59 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-16 07:48:21 +0100 |
commit | 3fde3ce4964539064f1de9a7070f980bef33aa88 (patch) | |
tree | 1162a4151cf53b63020397a79ce6d5a8dbb5f9dd /api | |
parent | 04f761afc7e7297a4cbc2a23f118fca4c5c25f5d (diff) |
api/plugin: add helper members to `enum Axis'
Diffstat (limited to 'api')
-rw-r--r-- | api/plugin-api.hpp | 11 |
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 { |