How can I extract rotation and scale values from a 2D transformation matrix?
matrix = [1, 0, 0, 1, 0, 0]
matrix.rotate(45 / 180 * PI)
matrix.scale(3, 4)
matrix.translate(50, 100)
matrix.rotate(30 / 180 * PI)
matrix.scale(-2, 4)
Now my matrix have values [a, b, c, d, tx, ty]
. Lets forget about the processes above and imagine that we have only the values a, b, c, d, tx, and ty. How can I find final rotation and scale values?
rotate(180)
, since cos(180°) is -1. – NVI May 07 '14 at 04:55scale(-1, 1) rotate(90)
. ψ gets calculated as -90° instead of 90°. – NVI May 07 '14 at 05:18RigidTransform
in your question. – John Alexiou Jun 30 '20 at 23:14