Package edu.nps.moves.dis7.test
Class QuaternionTest
java.lang.Object
edu.nps.moves.dis7.test.QuaternionTest
Unit tests for Quaternion legacy math class.
Validates identity, axis-angle, Euler, matrix conversion, normalize,
conjugate, invert, multiply, xform, slerp, and makeFromVecs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCommand-line invocation (CLI) of program, execution starts herestatic voidstatic voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
QuaternionTest
public QuaternionTest()default constructor
-
-
Method Details
-
setUpClass
@BeforeAll public static void setUpClass() -
tearDownClass
@AfterAll public static void tearDownClass() -
testDefaultConstructorIsIdentity
@Test public void testDefaultConstructorIsIdentity() -
testIdentityLength
@Test public void testIdentityLength() -
testCopyConstructor
@Test public void testCopyConstructor() -
testAxisAngleRoundTrip
@Test public void testAxisAngleRoundTrip() -
testEulersRoundTrip
@Test public void testEulersRoundTrip() -
testZeroEulersGiveIdentity
@Test public void testZeroEulersGiveIdentity() -
testMatrix3fRoundTrip
@Test public void testMatrix3fRoundTrip() -
testMatrix4fRoundTrip
@Test public void testMatrix4fRoundTrip() -
testNormalize
@Test public void testNormalize() -
testConjugate
@Test public void testConjugate() -
testInvertUnitQuaternion
@Test public void testInvertUnitQuaternion() -
testMultiplyIdentity
@Test public void testMultiplyIdentity() -
testXformIdentity
@Test public void testXformIdentity() -
testXform90DegreesAboutZ
@Test public void testXform90DegreesAboutZ() -
testXformArrayForm
@Test public void testXformArrayForm() -
testSlerpEndpoints
@Test public void testSlerpEndpoints() -
testSlerpMidpoint
@Test public void testSlerpMidpoint() -
testMakeFromVecsParallel
@Test public void testMakeFromVecsParallel() -
testMakeFromVecsOrthogonal
@Test public void testMakeFromVecsOrthogonal() -
testSetGetQuatValue
@Test public void testSetGetQuatValue() -
testBoundsCheck
@Test public void testBoundsCheck() -
testAddSub
@Test public void testAddSub() -
main
Command-line invocation (CLI) of program, execution starts here- Parameters:
args- command-line arguments
-