Rotate a triangle with vertices (2, 1). (4. 1). (3, 3) by 90 degrees (clock wise) and then Translate it by Tx 4 and Ty 3 and finally rotate it by 30 degrees (anti-clock wise). (cos90=0, sin90 1. cos 30 = 0.866, sin30 =0.5)
T1 is Rotation with 90 T2 is Translation T3 is Rotation with 30
What is correct order of transformation matrix to multiply the metrix?
T3 T2 T1 or T1 T2 T3?
Should i follow the order given by the question or reverse order?
T3@T2@T1@vertices since the T1 matrix will be applied first. Here is the representation with parentheses to emphasize the order of operations:
T3@(T2@(T1@vertices))
P.S. the @ symbol is how you multiply matrices in python.