Mercurial > hg > orthanc-stone
diff 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 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Toolbox/AffineTransform2D.cpp Mon Oct 31 17:45:53 2022 +0100 +++ b/OrthancStone/Sources/Toolbox/AffineTransform2D.cpp Mon Oct 31 20:59:59 2022 +0100 @@ -293,4 +293,22 @@ return t; } } + + + AffineTransform2D AffineTransform2D::CreateFlipX() + { + AffineTransform2D t; + t.matrix_(0, 0) = -1; + t.matrix_(1, 1) = 1; + return t; + } + + + AffineTransform2D AffineTransform2D::CreateFlipY() + { + AffineTransform2D t; + t.matrix_(0, 0) = 1; + t.matrix_(1, 1) = -1; + return t; + } }