The t-total, T, of any t-shape that has been translated by a vector is given by (T = t-total, n = t-number, g = grid size):
T = 5 ( n + a - bg ) - 7g
Justification
The general t-shape with t-total T= 5n - 7g is clearly shown. The vector can be written as the sum of the vectors +.
Translating the t-shape horizontally by the vector will add (a) to every cell. The t-number, n, thus becomes n + a.
Translating the t-shape vertically by the vector will add (-bg) to every cell. The t-number, n , thus becomes n - bg.
As +=, translating the t-shape by the vector will add (a – bg) to every cell. The t-number thus becomes n + a –bg. Using T = 5n - 7g, the t-total of a translated t-shape is given by T = 5 (n +a - bg) -7g.
Validation
It is important that we check the validity of the equation by performing translations of all forms in different grid sizes.
The t-total for the translated t-number agrees with the results from the formula. We can therefore say that T = 5 (n +a - bg) -7g will work for any translation of the form in any grid size.
Rotations
Rotations about the t-number
In the same way that we justified T= 5n-7g, we can rotate the t-shape about the t-number and express the other cells in terms of n (t-number) and g (grid size). Collecting like terms will simplify a formula for the t-total, T, of the rotated t-shape. We can then validate the formula in different grid sizes.
Rotation of 90º clockwise/ 270º anti-clockwise
T= (n) + (n +1) + (n + 2) + (n + 2 –g) + (n + 2) + (n + 2 + g)
T= 5n + 7
Rotation of 180º
T= (n) + (n + g) + (n + 2g) + (n + 2g –1) + (n + 2g +1)
T= 5n + 7g
Rotation of 270º clockwise/ 90º anti-clockwise
T= (n) + ( n – 1) +( n - 2 )+ (n – 2 – g) + (n – 2 + g)
T= 5n + 7g
Validation
As the results from the formulae agree with the t-total of the rotated t-shape, we can confirm the following formulae for a rotation about the t-number in any grid size:
-
90º clockwise: T = 5n + 7
-
180º: T = 5n – 7g
-
270º clockwise: T= 5n - 7
Rotation of 90º clockwise/ 270º anticlockwise about an external point
The distance from the t-number to the centre of rotation is described by the column vector where c is the horizontal distance (positive to the right and negative to the left) and d is the vertical distance (positive being upwards and negative being downwards).
The t-total of any t-shape that has been rotated 90º clockwise or 270º anticlockwise about an external point is given by (T = t-total, n = t-number, g = grid size):
T = 5 ( n + c – dg –d –cg ) + 7
Justification
The general t-shape with t-total T= 5n - 7g is clearly shown. The distance from the t-number, n, to the centre of rotation is described by the vector .
Translate the t-number, n, to the centre of rotation. By using the earlier justification, a translation by the vector will add (c-dg) to every cell. The t-number thus becomes:
n + c – dg
The position of t-shape following a rotation of 90º clockwise has been outlined by a dotted line. The vector will translate the t-number, n+ c–dg, to the position that the t-number will take when the original t-shape has been rotated. By using the earlier justification, a translation by the vector will add (-d-cg) to every cell. The t-number thus becomes:
n + c – dg –d -cg
Rotate the t-shape 90º clockwise about the t-number, n+c-dg-d-cg. By using the earlier justification that a rotation of 90º clockwise about the t-number, n, has a t-total T=5n + 7, the t-total of a t-shape that has been rotated 90º about an external point becomes:
T= 5 ( n + c – dg –d -cg ) + 7.
Rotation of 180º about an external point
The t-total of any t-shape that has been rotated 180º about an external point is given by (T = t-total, n = t-number, g = grid size):
T = 5 (n + 2c – 2dg )+ 7g
Justification
We can assume that the t-number, n, has been translated to the centre of rotation by the vector . The t-number thus becomes n+c-dg.
The position of the t-shape following a rotation of 180º has been outlined by a dotted line. The vector will translate the t-number, n+c–dg, to the position that the t-number will take when the original t-shape has been rotated. By using the earlier justification, a translation by the vector will add (c-dg) to every cell. The t-number thus becomes: n + 2c – 2dg
Rotate the t-shape 180º about the t-number, n+2c-2dg. By using the earlier justification that a rotation of 180º about the t-number, n, has a t-total T=5n + 7g, the t-total of a t-shape that has been rotated 180º about an external point becomes:
T= 5 ( n + 2c – 2dg ) + 7g.
Rotation of 270º clockwise/ 90º anticlockwise about an external point
The t-total of any t-shape that has been rotated 270º clockwise or 90º anticlockwise about an external point is given by (T = t-total, n = t-number, g = grid size):
T = 5 ( n + c – dg +d +cg ) - 7
Justification
We will assume that the t-number, n, has been translated to the centre of rotation by the vector. The t-number thus becomes n+c-dg.
The position of the t-shape following a rotation of 270º clockwise has been outlined by a dotted line. The vector will translate the t-number, n + c –dg, to the position that the t-number will take when the original t-shape has been rotated. By using the earlier justification, a translation by the vector will add (d+ cg) to every cell. The t-number thus becomes:
n + c –dg + d +cg
Rotate the t-shape 270º clockwise about the t-number, n+c-dg+d+cg. By using the earlier justification that a rotation of 270º clockwise about the t-number, n, has a t-total T=5n - 7, the t-total of a t-shape that has been rotated 270º clockwise about an external point becomes:
T= 5 (n + c – dg +d +cg) - 7
Validation
It is important that we check the validity of the equation by performing rotations of all forms in different grid sizes.
Rotation of 90º clockwise about an external point
Rotation of 180º about an external point
Rotation of 270º clockwise about an external point
The t-total for the rotated t-shape agrees with the results from the formula. We can therefore say that our formulae are consistent.
Combined Transformations
Rotation followed by translation
The magnitude and direction of a and b in the vector remain unchanged after the t-shape has been rotated. Therefore we can add (a-bg ) to every cell. The t-total for a combined transformation of a rotation followed by a translation can therefore be found by adding 5(a-bg) to the t-total of the rotated t-shape.
The t-total of a t-shape that has been rotated and then translated can therefore be written as:
-
Rotate 90º clockwise and translate
T = 5 ( n + c – dg –d –cg + a – bg ) + 7
-
Rotate 180º and translate
T = 5 (n + 2c – 2dg + a – bg )+ 7g
-
Rotate 270º clockwise and translate
T = 5 ( n + c – dg +d +cg + a – bg ) – 7
Using the validation of the formula for a rotation about an external point and the formula for a translation as evidence, it follows, from the algebraic argument above, that the formula for the combined transformation is correct. We need not therefore test it further.
Translation followed by a rotation
The order of the transformations is significant. represents the distance from the t-number to the centre of rotation. This will be different for different translations of the form. Therefore, given, the vector becomes in the t-total formula. The t-total of a t-shape that has been translated and then rotated becomes:
-
Translate and rotate 90º clockwise
T = 5 { n + (c - a) (1-g) – (d - b) (g+1) + a – bg } + 7
-
Translate and rotate 180º
T = 5 {n + 2 (c - a) – 2g (d - b) + a – bg } + 7g
-
Translate and rotate 270º clockwise
T = 5 { n + (c - a) (1 + g) – (d - b) (g – 1) + a – bg } – 7
Validation
To thoroughly validate these formulae, all forms of and need to be tested. As there are sixteen combinations of the two vectors, using only an 11×11 grid will be sufficient for our test.
Translate and rotate 90º clockwise
The t-total for the rotated t-shape agrees with the results from the formula. We can therefore say that our formulae are consistent.
Summary
T-total
T = 5n – 7g
Translation by vector
T = 5 ( n + a - bg ) - 7g
Rotations about an external point that is vector from t-number
-
Rotate 90º clockwise T = 5 ( n + c – dg –d –cg ) + 7
-
Rotate 180º T = 5 (n + 2c – 2dg )+ 7g
-
Rotate 270º clockwise T = 5 ( n + c – dg +d +cg ) – 7
* for rotations about the t-number c and d will equal zero.
Combined transformation: rotation followed by a translation
-
Rotate 90º clockwise and translate
T = 5 ( n + c – dg –d –cg + a – bg ) + 7
-
Rotate 180º and translate
T = 5 (n + 2c – 2dg + a – bg )+ 7g
-
Rotate 270º clockwise and translate
T = 5 ( n + c – dg +d +cg + a – bg ) – 7
Combined transformation: translation followed by a rotation
-
Translate and rotate 90º clockwise
T = 5 { n + (c - a) (1-g) – (d - b) (g+1) + a – bg } + 7
-
Translate and rotate 180º
T = 5 {n + 2 (c - a) – 2g (d - b) + a – bg } + 7g
-
Translate and rotate 270º clockwise
T = 5 { n + (c - a) (1 + g) – (d - b) (g – 1) + a – bg } – 7