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
|
//-----------------------------------------------------------------------------
/** @file libboardgame_base/RectTransform.h
@author Markus Enzenberger
@copyright GNU General Public License version 3 or later */
//-----------------------------------------------------------------------------
#ifndef LIBBOARDGAME_BASE_RECTTRANSFORM_H
#define LIBBOARDGAME_BASE_RECTTRANSFORM_H
#include "Transform.h"
namespace libboardgame_base {
//-----------------------------------------------------------------------------
class TransfIdentity
: public Transform
{
public:
TransfIdentity() : Transform(0) {}
CoordPoint get_transformed(CoordPoint p) const override;
};
//-----------------------------------------------------------------------------
class TransfRectRot90
: public Transform
{
public:
TransfRectRot90() : Transform(0) {}
CoordPoint get_transformed(CoordPoint p) const override;
};
//-----------------------------------------------------------------------------
class TransfRectRot180
: public Transform
{
public:
TransfRectRot180() : Transform(0) {}
CoordPoint get_transformed(CoordPoint p) const override;
};
//-----------------------------------------------------------------------------
class TransfRectRot270
: public Transform
{
public:
TransfRectRot270() : Transform(0) {}
CoordPoint get_transformed(CoordPoint p) const override;
};
//-----------------------------------------------------------------------------
class TransfRectRefl
: public Transform
{
public:
TransfRectRefl() : Transform(0) {}
CoordPoint get_transformed(CoordPoint p) const override;
};
//-----------------------------------------------------------------------------
class TransfRectRot90Refl
: public Transform
{
public:
TransfRectRot90Refl() : Transform(0) {}
CoordPoint get_transformed(CoordPoint p) const override;
};
//-----------------------------------------------------------------------------
class TransfRectRot180Refl
: public Transform
{
public:
TransfRectRot180Refl() : Transform(0) {}
CoordPoint get_transformed(CoordPoint p) const override;
};
//-----------------------------------------------------------------------------
class TransfRectRot270Refl
: public Transform
{
public:
TransfRectRot270Refl() : Transform(0) {}
CoordPoint get_transformed(CoordPoint p) const override;
};
//-----------------------------------------------------------------------------
} // namespace libboardgame_base
#endif // LIBBOARDGAME_BASE_TRANSFORM_H
|