diff --git a/sources/reactphysics3d/testing/testing_mathematics/QuaternionTest.h b/sources/reactphysics3d/testing/testing_mathematics/QuaternionTest.h index 72eba747..8d94353f 100644 --- a/sources/reactphysics3d/testing/testing_mathematics/QuaternionTest.h +++ b/sources/reactphysics3d/testing/testing_mathematics/QuaternionTest.h @@ -50,6 +50,7 @@ class QuaternionTest : public TestSuite::Test { testGetUnit(); testGetConjugate(); testGetInverse(); + testScalarProduct(); testOperatorAddition(); testOperatorSubstraction(); testOperatorMultiplicationWithConstant(); @@ -263,6 +264,12 @@ class QuaternionTest : public TestSuite::Test { } } + // Test the scalarProduct() method + void testScalarProduct() { + double result = quaternion1.scalarProduct(quaternion2); + test_(result == 110.0); + } + // Test operator+() void testOperatorAddition() { Quaternion result = quaternion1 + quaternion2;