-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathPieceTransformsTrigon.h
65 lines (41 loc) · 1.67 KB
/
PieceTransformsTrigon.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
//-----------------------------------------------------------------------------
/** @file libpentobi_base/PieceTransformsTrigon.h
@author Markus Enzenberger
@copyright GNU General Public License version 3 or later */
//-----------------------------------------------------------------------------
#ifndef LIBPENTOBI_BASE_PIECE_TRANSFORMS_TRIGON_H
#define LIBPENTOBI_BASE_PIECE_TRANSFORMS_TRIGON_H
#include "PieceTransforms.h"
#include "TrigonTransform.h"
namespace libpentobi_base {
//-----------------------------------------------------------------------------
class PieceTransformsTrigon final
: public PieceTransforms
{
public:
PieceTransformsTrigon();
const Transform* get_mirrored_horizontally(
const Transform* transf) const override;
const Transform* get_mirrored_vertically(
const Transform* transf) const override;
const Transform* get_rotated_anticlockwise(
const Transform* transf) const override;
const Transform* get_rotated_clockwise(
const Transform* transf) const override;
private:
TransfTrigonIdentity m_identity;
TransfTrigonRot60 m_rot60;
TransfTrigonRot120 m_rot120;
TransfTrigonRot180 m_rot180;
TransfTrigonRot240 m_rot240;
TransfTrigonRot300 m_rot300;
TransfTrigonRefl m_refl;
TransfTrigonReflRot60 m_refl_rot60;
TransfTrigonReflRot120 m_refl_rot120;
TransfTrigonReflRot180 m_refl_rot180;
TransfTrigonReflRot240 m_refl_rot240;
TransfTrigonReflRot300 m_refl_rot300;
};
//-----------------------------------------------------------------------------
} // namespace libpentobi_base
#endif // LIBPENTOBI_BASE_PIECE_TRANSFORMS_TRIGON_H