git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@79 92aac97c-a6ce-11dd-a772-7fcde58d38e6

This commit is contained in:
chappuis.daniel 2009-02-09 17:00:33 +00:00
parent 464d3cf341
commit a3c550f572

View File

@ -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;