| a_1 b_1 c_1 |
| a_2 b_2 c_2 | = a_1 b_2 c_3 - a_1 b_3 c_2
| a_3 b_3 c_3 | + a_3 b_1 c_2 - a_2 b_1 c_3
+ a_2 b_3 c_1 - a_3 b_2 c_1
= a_1 (b_2 c_3 - b_3 c_2)
+a_2 (b_3 c_1 - b_1 c_3)
+a_3 (b_2 c_1 - b_1 c_2)
= a [dot] (b [cross] c)
0 -u_3 u_2
u_3 0 -u_1
-u_2 u_1 0
0 -1 15
1 0 0
0 0 1
which is rotation followed by translation, but
notice that when we compose the matricies we put them in the opposite
order. This is because the matrix on the right acts on the points
first, then the matrix on the left:
0 -1 15 1 0 15 0 -1 0
1 0 0 = 0 1 0 * 1 0 0
0 0 1 0 0 1 0 0 1
The matrix to take A',B',C' to A",B",C" is just the same rotation matrix
from above:
0 -1 0
1 0 0
0 0 1
Composing this (on the LEFT) with the previous tranformation matrix gives:
0 -1 0 0 -1 15 0 -1 0
1 0 0 * 1 0 0 = -1 0 15
0 0 1 0 0 1 0 0 1
Notice that in this matrix the rotation part (the upper left 2x2 part
of the matrix) is simply the rotation matrix for 180 degrees counter
clockwise. This is the sum of the rotations in each transformation.
The translation part though has been rotated by the second 90 degree
rotation so that now the 15 is a translation in the y direction.
T1 * T2 = T2 * T1
S1 * S2 = S2 * S1
R * T != T * R
S * T != T * S
0 1 2
-1 -1 3
0 0 1Always remember to check your answers... For problems like this it is easy, just see if it transforms all the points to the correct locations.