|
|
|
|
@ -37,6 +37,7 @@ RectangularMatrixTest::RectangularMatrixTest() {
|
|
|
|
|
&RectangularMatrixTest::constructZero, |
|
|
|
|
&RectangularMatrixTest::data, |
|
|
|
|
|
|
|
|
|
&RectangularMatrixTest::negative, |
|
|
|
|
&RectangularMatrixTest::addSubtract, |
|
|
|
|
&RectangularMatrixTest::multiplyDivide, |
|
|
|
|
&RectangularMatrixTest::multiply, |
|
|
|
|
@ -111,6 +112,10 @@ void RectangularMatrixTest::data() {
|
|
|
|
|
CORRADE_COMPARE(m, expected); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void RectangularMatrixTest::negative() { |
|
|
|
|
CORRADE_COMPARE(-Matrix2(1.0f, -3.0f, 5.0f, -10.0f), Matrix2(-1.0f, 3.0f, -5.0f, 10.0f)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void RectangularMatrixTest::addSubtract() { |
|
|
|
|
Matrix4x3 a(0.0f, 1.0f, 3.0f, |
|
|
|
|
4.0f, 5.0f, 7.0f, |
|
|
|
|
|