Design: 06.01.01/P01
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 1: Behavior of translations
CHARACTERISTICS: nnnn
OPERATOR SCRIPT: passive test.
DESIGN:
TEST: #SR 1 2 3
"<Translate 3> should return a correct representation for the
transformation to translate a 3D point, with non-zero parameters."
Set translate parameters (dx,dy,dz) to (-33.3, 0.0076, 2.2)
<Translate 3> with dx,dy,dz returns act4x4 = actual array
Compute exp4x4 = expected array
pass/fail depending on (act4x4 represents same transformation as exp4x4)
TEST: #SR 1 2 3
"<Translate 3> should return a correct representation for the
transformation to translate a 3D point, with zero parameters."
Set translate parameters (dx,dy,dz) to (0.0, 0.0076, 0.0)
<Translate 3> with dx,dy,dz returns act4x4 = actual array
Compute exp4x4 = expected array
pass/fail depending on (act4x4 represents same transformation as exp4x4)
TEST: #SR 1 2 4
"<Translate> should return a correct representation for the
transformation to translate a 2D point, with non-zero parameters."
Set translate parameters (dx,dy) to (-33.3, 0.0076)
<Translate> with dx,dy returns act3x3 = actual array
Compute exp3x3 = expected array
pass/fail depending on (act3x3 represents same transformation as exp3x3)
TEST: #SR 1 2 4
"<Translate> should return a correct representation for the
transformation to translate a 2D point, with zero parameters."
Set translate parameters (dx,dy) to (0.0, 0.0)
<Translate> with dx,dy returns act3x3 = actual array
Compute exp3x3 = expected array
pass/fail depending on (act3x3 represents same transformation as exp3x3)
END PROGRAM 1