|
|
|
|
@ -40,6 +40,7 @@ VectorTest::VectorTest() {
|
|
|
|
|
&VectorTest::length, |
|
|
|
|
&VectorTest::lengthSquared, |
|
|
|
|
&VectorTest::normalized, |
|
|
|
|
&VectorTest::sum, |
|
|
|
|
&VectorTest::product, |
|
|
|
|
&VectorTest::angle, |
|
|
|
|
&VectorTest::negative, |
|
|
|
|
@ -121,6 +122,10 @@ void VectorTest::normalized() {
|
|
|
|
|
CORRADE_COMPARE(Vector4(1.0f, 1.0f, 1.0f, 1.0f).normalized(), Vector4(0.5f, 0.5f, 0.5f, 0.5f)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void VectorTest::sum() { |
|
|
|
|
CORRADE_COMPARE(Vector3(1.0f, 2.0f, 4.0f).sum(), 7.0f); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void VectorTest::product() { |
|
|
|
|
CORRADE_COMPARE(Vector3(1.0f, 2.0f, 3.0f).product(), 6.0f); |
|
|
|
|
} |
|
|
|
|
|