comparison OrthancStone/Sources/Toolbox/AffineTransform2D.h @ 1989:e8b9a2ba1df1

Added left/right rotation buttons
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 31 Oct 2022 20:59:59 +0100
parents 7053b8a0aaec
children 07964689cb0b
comparison
equal deleted inserted replaced
1988:3c84c34322d7 1989:e8b9a2ba1df1
34 { 34 {
35 private: 35 private:
36 Matrix matrix_; 36 Matrix matrix_;
37 37
38 public: 38 public:
39 AffineTransform2D(); 39 AffineTransform2D(); // Create the identity transform
40 40
41 // The matrix must be 3x3, without perspective effects 41 // The matrix must be 3x3, without perspective effects
42 explicit AffineTransform2D(const Matrix& m); 42 explicit AffineTransform2D(const Matrix& m);
43 43
44 AffineTransform2D(const AffineTransform2D& other) : 44 AffineTransform2D(const AffineTransform2D& other) :
104 104
105 static AffineTransform2D CreateFlip(bool flipX, 105 static AffineTransform2D CreateFlip(bool flipX,
106 bool flipY, 106 bool flipY,
107 unsigned int width, 107 unsigned int width,
108 unsigned int height); 108 unsigned int height);
109
110 static AffineTransform2D CreateFlipX();
111
112 static AffineTransform2D CreateFlipY();
109 }; 113 };
110 } 114 }