From a3c550f5724992d17a005c41f53f53828faf56ae Mon Sep 17 00:00:00 2001 From: "chappuis.daniel" Date: Mon, 9 Feb 2009 17:00:33 +0000 Subject: [PATCH] git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@79 92aac97c-a6ce-11dd-a772-7fcde58d38e6 --- .../testing/testing_mathematics/Matrix3x3Test.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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;