summaryrefslogtreecommitdiffhomepage
path: root/src/rotation.hpp
blob: 471007c3bbfee0382ac465570cacda0f38302535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

namespace floormat {

enum class rotation : unsigned char {
    N, NE, E, SE, S, SW, W, NW,
};

constexpr inline size_t rotation_BITS = 3;
constexpr inline size_t rotation_MASK = (1 << rotation_BITS)-1;
constexpr inline rotation rotation_COUNT = rotation{1 << rotation_BITS};

} // namespace floormat