# HG changeset patch # User Alain Mazy # Date 1570204051 -7200 # Node ID 7912de3a15e0b36e2f641b2de7501ea87790ba16 # Parent 9889c819db010134042b13532b0eb323e7fdbdac AffineTransform2D::Combine with 5 args diff -r 9889c819db01 -r 7912de3a15e0 Framework/Toolbox/AffineTransform2D.cpp --- a/Framework/Toolbox/AffineTransform2D.cpp Fri Oct 04 17:47:13 2019 +0200 +++ b/Framework/Toolbox/AffineTransform2D.cpp Fri Oct 04 17:47:31 2019 +0200 @@ -197,6 +197,18 @@ d.GetHomogeneousMatrix())); } + AffineTransform2D AffineTransform2D::Combine(const AffineTransform2D& a, + const AffineTransform2D& b, + const AffineTransform2D& c, + const AffineTransform2D& d, + const AffineTransform2D& e) + { + return AffineTransform2D(LinearAlgebra::Product(a.GetHomogeneousMatrix(), + b.GetHomogeneousMatrix(), + c.GetHomogeneousMatrix(), + d.GetHomogeneousMatrix(), + e.GetHomogeneousMatrix())); + } AffineTransform2D AffineTransform2D::CreateOffset(double dx, double dy) diff -r 9889c819db01 -r 7912de3a15e0 Framework/Toolbox/AffineTransform2D.h --- a/Framework/Toolbox/AffineTransform2D.h Fri Oct 04 17:47:13 2019 +0200 +++ b/Framework/Toolbox/AffineTransform2D.h Fri Oct 04 17:47:31 2019 +0200 @@ -77,6 +77,12 @@ const AffineTransform2D& c, const AffineTransform2D& d); + static AffineTransform2D Combine(const AffineTransform2D& a, + const AffineTransform2D& b, + const AffineTransform2D& c, + const AffineTransform2D& d, + const AffineTransform2D& e); + static AffineTransform2D CreateOffset(double dx, double dy);