Design: 06.01.01/P03
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 3: Behavior of rotations
CHARACTERISTICS: nnnn
OPERATOR SCRIPT: passive test.
DESIGN:
TEST: #SR 1 2 7
"<Rotate x> should return a correct representation for the
transformation to rotate a 3D point counterclockwise
around the x-axis by the specified number of radians."
Set rotate x parameter rotang to 5.678
<Rotate x> with rotang returns act4x4 = actual array
Compute exp4x4 = expected array
pass/fail depending on (act4x4 represents same transformation as exp4x4)
TEST: #SR 1 2 8
"<Rotate y> should return a correct representation for the
transformation to rotate a 3D point counterclockwise
around the y-axis by the specified number of radians."
Set rotate y parameter rotang to -0.007373
<Rotate y> with rotang returns act4x4 = actual array
Compute exp4x4 = expected array
pass/fail depending on (act4x4 represents same transformation as exp4x4)
TEST: #SR 1 2 9
"<Rotate z> should return a correct representation for the
transformation to rotate a 3D point counterclockwise
around the z-axis by the specified number of radians."
Set rotate z parameter rotang to 8.52525
<Rotate z> with rotang returns act4x4 = actual array
Compute exp4x4 = expected array
pass/fail depending on (act4x4 represents same transformation as exp4x4)
TEST: #SR 1 2 10
"<Rotate> should return a correct representation for the
transformation to rotate a 2D point counterclockwise
around the origin by the specified number of radians."
Set rotate parameter rotang to -11.1111
<Rotate> with rotang returns act3x3 = actual array
Compute exp3x3 = expected array
pass/fail depending on (act3x3 represents same transformation as exp3x3)
END PROGRAM 3