Design: 06.01.01/P06

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 6: Building transformations

CHARACTERISTICS: nnnn

OPERATOR SCRIPT: passive test.

DESIGN:

TEST: #SR 1 2 15
      "<Build transformation matrix 3> should generate a
       matrix to perform the specified 3D transformation."

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)
<Build 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 16
      "<Build transformation matrix> should generate a matrix to
       perform the specified 2D transformation."

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)
<Build transformation matrix> returns act3x3 = actual array
Compute exp3x3 = expected array
pass/fail depending on (act3x3 represents same transformation as exp3x3)

END PROGRAM 6