Design: 06.01.01/P05
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 5: Behavior of transformation of points
CHARACTERISTICS: nnnn
OPERATOR SCRIPT: passive test.
DESIGN:
TEST: #SR 1 2 13
"<Transform point 3> should return the 3D point resulting
from applying the specified transformation matrix to the
specified point."
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 |
Initialize 3D point p3 to: (-262.27, 0.02525, 53.838)
<Transform point 3> using a4, p3 returns acttp3 = actual transformed point
Compute exptp3 = expected transformed point
pass/fail depending on (acttp3 = exptp3)
TEST: #SR 1 2 14
"<Transform point> should return the 2D point resulting
from applying the specified transformation matrix to the
specified point."
Initialize array a3 to: | -2.2 3.3 5.5 |
| 0.0023 -727.12 33.33 |
| 0 34 -0.045 |
Initialize 2D point p2 to: (-262.27, 53.838)
<Transform point> using a3, p2 returns acttp2 = actual transformed point
Compute exptp2 = expected transformed point
pass/fail depending on (acttp2 = exptp2)
END PROGRAM 5