comparison Framework/Toolbox/AffineTransform2D.cpp @ 1279:7ec8fea061b9 broker

integration mainline->broker
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 04 Feb 2020 15:20:08 +0100
parents 0ca50d275b9a 2d8ab34c8c91
children 30deba7bc8e2
comparison
equal deleted inserted replaced
1271:0ca50d275b9a 1279:7ec8fea061b9
244 t.matrix_(1, 1) = cosine; 244 t.matrix_(1, 1) = cosine;
245 245
246 return t; 246 return t;
247 } 247 }
248 248
249 AffineTransform2D AffineTransform2D::CreateRotation(double angle, // CW rotation
250 double cx, // rotation center
251 double cy) // rotation center
252 {
253 return Combine(
254 CreateOffset(cx, cy),
255 CreateRotation(angle),
256 CreateOffset(-cx, -cy)
257 );
258 }
249 259
250 AffineTransform2D AffineTransform2D::CreateOpenGLClipspace(unsigned int canvasWidth, 260 AffineTransform2D AffineTransform2D::CreateOpenGLClipspace(unsigned int canvasWidth,
251 unsigned int canvasHeight) 261 unsigned int canvasHeight)
252 { 262 {
253 AffineTransform2D t; 263 AffineTransform2D t;