-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathGembloQTransform.h
109 lines (78 loc) · 2.65 KB
/
GembloQTransform.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
//-----------------------------------------------------------------------------
/** @file libpentobi_base/GembloQTransform.h
@author Markus Enzenberger
@copyright GNU General Public License version 3 or later */
//-----------------------------------------------------------------------------
#ifndef LIBPENTOBI_BASE_GEMBLOQ_TRANSFORM_H
#define LIBPENTOBI_BASE_GEMBLOQ_TRANSFORM_H
#include "libboardgame_base/Transform.h"
namespace libpentobi_base {
using libboardgame_base::CoordPoint;
using libboardgame_base::Transform;
//-----------------------------------------------------------------------------
class TransfGembloQIdentity
: public Transform
{
public:
TransfGembloQIdentity() : Transform(0) {}
CoordPoint get_transformed(CoordPoint p) const override;
};
//-----------------------------------------------------------------------------
class TransfGembloQRot90
: public Transform
{
public:
TransfGembloQRot90() : Transform(3) {}
CoordPoint get_transformed(CoordPoint p) const override;
};
//-----------------------------------------------------------------------------
class TransfGembloQRot180
: public Transform
{
public:
TransfGembloQRot180() : Transform(1) {}
CoordPoint get_transformed(CoordPoint p) const override;
};
//-----------------------------------------------------------------------------
class TransfGembloQRot270
: public Transform
{
public:
TransfGembloQRot270() : Transform(2) {}
CoordPoint get_transformed(CoordPoint p) const override;
};
//-----------------------------------------------------------------------------
class TransfGembloQRefl
: public Transform
{
public:
TransfGembloQRefl() : Transform(3) {}
CoordPoint get_transformed(CoordPoint p) const override;
};
//-----------------------------------------------------------------------------
class TransfGembloQRot90Refl
: public Transform
{
public:
TransfGembloQRot90Refl() : Transform(1) {}
CoordPoint get_transformed(CoordPoint p) const override;
};
//-----------------------------------------------------------------------------
class TransfGembloQRot180Refl
: public Transform
{
public:
TransfGembloQRot180Refl() : Transform(2) {}
CoordPoint get_transformed(CoordPoint p) const override;
};
//-----------------------------------------------------------------------------
class TransfGembloQRot270Refl
: public Transform
{
public:
TransfGembloQRot270Refl() : Transform(0) {}
CoordPoint get_transformed(CoordPoint p) const override;
};
//-----------------------------------------------------------------------------
} // namespace libpentobi_base
#endif // LIBPENTOBI_BASE_GEMBLOQ_TRANSFORM_H