diff options
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/matrix/b2dhommatrixtools.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/basegfx/source/matrix/b2dhommatrixtools.cxx b/basegfx/source/matrix/b2dhommatrixtools.cxx index 645d4c7e261a..89ab91424706 100644 --- a/basegfx/source/matrix/b2dhommatrixtools.cxx +++ b/basegfx/source/matrix/b2dhommatrixtools.cxx @@ -398,6 +398,20 @@ namespace basegfx return aRetval; } + B2DHomMatrix createCoordinateSystemTransform( + const B2DPoint& rOrigin, + const B2DVector& rX, + const B2DVector& rY) + { + return basegfx::B2DHomMatrix( + rX.getX(), rY.getX(), rOrigin.getX(), + rX.getY(), rY.getY(), rOrigin.getY()); + } + + B2DTuple getColumn(const B2DHomMatrix& rMatrix, sal_uInt16 nCol) + { + return B2DTuple(rMatrix.get(0, nCol), rMatrix.get(1, nCol)); + } } // end of namespace tools } // end of namespace basegfx |