blob: 39694336eef7f0d9a10a56e4b544a0972bfa5d0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#pragma once
#include <cstddef>
namespace floormat {
enum class rotation : unsigned char {
N, NE, E, SE, S, SW, W, NW,
};
constexpr inline std::size_t rotation_BITS = 3;
constexpr inline std::size_t rotation_MASK = (1 << rotation_BITS)-1;
constexpr inline rotation rotation_COUNT = rotation{1 << rotation_BITS};
} // namespace floormat
|