Compare two transform orders on the same triangle and see that the
results differ.
Example
Compare S R and R S to see why transform order changes the result.
highlighted = computed this step
Step 1 — Set up
Set up rotation and scale; rightmost matrix acts first.
R=010−100001S=200010001
Step 2 — Compose both orders
Multiply in both orders; the products differ.
SRRS=010−200001=020−100001
Step 3 — Compare vertex A
Apply both orders to vertex A.
(SR)A(RS)A=111→−211=111→−121
Step 4 — Compare vertex B
Apply both orders to vertex B.
(SR)B(RS)B=311→−231=311→−161
Step 5 — Compare vertex C
Apply both orders to vertex C.
(SR)C(RS)C=121→−411=121→−221
Step 6 — Result
The two composite orders make different triangles.
SR=RS
compose-order-mattersWith column vectors, the rightmost matrix acts first. Scaling after rotation and rotating after scaling can produce different shapes.