diff --git a/sources/reactphysics3d/testing/testing_mathematics/Matrix3x3Test.h b/sources/reactphysics3d/testing/testing_mathematics/Matrix3x3Test.h index e8995e0e..d90d1cb1 100644 --- a/sources/reactphysics3d/testing/testing_mathematics/Matrix3x3Test.h +++ b/sources/reactphysics3d/testing/testing_mathematics/Matrix3x3Test.h @@ -60,6 +60,7 @@ class Matrix3x3Test : public TestSuite::Test { testOperatorSubstraction(); testOperatorMultiplicationWithConstant(); testOperatorMultiplicationWithMatrix(); + testOperatorMultiplicationWithVector(); testOperatorAssignment(); testOperatorEquality(); } @@ -379,6 +380,14 @@ class Matrix3x3Test : public TestSuite::Test { test_(result.getValue(2,2) == 256); } + testOperatorMultiplicationWithVector() { + Vector3D vector(4,7,3); + Vector3D result = matrix1 * vector; + test_(result.getX() == 46); + test_(result.getY() == 51); + test_(result.getZ() == 86); + } + // Test operator=() void testOperatorAssignment() { Matrix3x3 matrix;