|
|
|
@ -147,16 +147,16 @@ void VectorTest::construct() { |
|
|
|
CORRADE_COMPARE(a, Vector4(1.0f, 2.0f, -3.0f, 4.5f)); |
|
|
|
CORRADE_COMPARE(a, Vector4(1.0f, 2.0f, -3.0f, 4.5f)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void VectorTest::constructDefault() { |
|
|
|
|
|
|
|
constexpr Vector4 a; |
|
|
|
|
|
|
|
CORRADE_COMPARE(a, Vector4(0.0f, 0.0f, 0.0f, 0.0f)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void VectorTest::constructFromData() { |
|
|
|
void VectorTest::constructFromData() { |
|
|
|
Float data[] = { 1.0f, 2.0f, 3.0f, 4.0f }; |
|
|
|
Float data[] = { 1.0f, 2.0f, 3.0f, 4.0f }; |
|
|
|
CORRADE_COMPARE(Vector4::from(data), Vector4(1.0f, 2.0f, 3.0f, 4.0f)); |
|
|
|
CORRADE_COMPARE(Vector4::from(data), Vector4(1.0f, 2.0f, 3.0f, 4.0f)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void VectorTest::constructDefault() { |
|
|
|
|
|
|
|
constexpr Vector4 a; |
|
|
|
|
|
|
|
CORRADE_COMPARE(a, Vector4(0.0f, 0.0f, 0.0f, 0.0f)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void VectorTest::constructOneValue() { |
|
|
|
void VectorTest::constructOneValue() { |
|
|
|
#ifndef CORRADE_GCC46_COMPATIBILITY |
|
|
|
#ifndef CORRADE_GCC46_COMPATIBILITY |
|
|
|
constexpr Vector4 a(7.25f); |
|
|
|
constexpr Vector4 a(7.25f); |
|
|
|
|