Design: 06.01.01/P07
This is an abstract, language-independent design. Grim
details may be found in the
corresponding source code.
You may return to the
documentation
for the module containing this program design, or to the
entire hierarchical table of
topics covered by the PVT.
PROGRAM 7: Composition of a matrix with a transformation
CHARACTERISTICS: nnnn
OPERATOR SCRIPT: passive test.
DESIGN:
TEST: #SR 1 2 17
"<Compose transformation matrix 3> should generate a
matrix which is the composition of the specified
matrix with the specified 3D transformation."
Initialize array a4 to: | -2.2 3.3 4.4 5.5 |
| 0.0023 -727.12 2.09 33.33 |
| 0 34 54.1 -0.045 |
| 7 6 5 4 |
Set up parameters:
set fixed point to (-1.12, 2.23, 3.34)
set shift vector to (6.7, 8.9, 10.11)
set rotation angles to (7.6, -5.4, 3.2)
set scale factors to (0.0023, -636.34, 2.2)
<Compose transformation matrix 3> returns act4x4 = actual array
Compute exp4x4 = expected array
pass/fail depending on (act4x4 represents same transformation as exp4x4)
TEST: #SR 1 2 18
"<Compose transformation matrix> should generate a matrix
which is the composition of the specified matrix with the
specified 2D transformation."
Initialize array a3 to: | -2.2 3.3 5.5 |
| 0.0023 -727.12 33.33 |
| 0 34 -0.045 |
Set up parameters:
set fixed point to (-1.12, 2.23)
set shift vector to (6.7, 10.11)
set rotation angle to (-5.4)
set scale factors to (0.0023, -636.34)
<Compose transformation matrix> returns act3x3 = actual array
Compute exp3x3 = expected array
pass/fail depending on (act3x3 represents same transformation as exp3x3)
END PROGRAM 7