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

Added left/right rotation buttons
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 31 Oct 2022 20:59:59 +0100
parents 4e80b8afd0da
children 07964689cb0b
comparison
equal deleted inserted replaced
1988:3c84c34322d7 1989:e8b9a2ba1df1
291 t.matrix_(1, 2) = (flipY ? height : 0); 291 t.matrix_(1, 2) = (flipY ? height : 0);
292 292
293 return t; 293 return t;
294 } 294 }
295 } 295 }
296
297
298 AffineTransform2D AffineTransform2D::CreateFlipX()
299 {
300 AffineTransform2D t;
301 t.matrix_(0, 0) = -1;
302 t.matrix_(1, 1) = 1;
303 return t;
304 }
305
306
307 AffineTransform2D AffineTransform2D::CreateFlipY()
308 {
309 AffineTransform2D t;
310 t.matrix_(0, 0) = 1;
311 t.matrix_(1, 1) = -1;
312 return t;
313 }
296 } 314 }