|
|
|
@ -428,16 +428,13 @@ void FunctionsTest::select() { |
|
|
|
CORRADE_COMPARE(Math::select(a, b, Vector3(0.25f, 1.5f, 1.0f)), Vector3(-1.0f, -2.0f, 11.0f)); |
|
|
|
CORRADE_COMPARE(Math::select(a, b, Vector3(0.25f, 1.5f, 1.0f)), Vector3(-1.0f, -2.0f, 11.0f)); |
|
|
|
|
|
|
|
|
|
|
|
/* Wrapped types */ |
|
|
|
/* Wrapped types */ |
|
|
|
CORRADE_COMPARE(Math::select(2.0_degf, 5.0_degf, 0.5_degf), 2.0_degf); |
|
|
|
CORRADE_COMPARE(Math::select(2.0_degf, 5.0_degf, 0.5f), 2.0_degf); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void FunctionsTest::selectBool() { |
|
|
|
void FunctionsTest::selectBool() { |
|
|
|
CORRADE_COMPARE(Math::select(true, false, 0.5f), true); |
|
|
|
CORRADE_COMPARE(Math::select(true, false, 0.5f), true); |
|
|
|
CORRADE_COMPARE(Math::select(Math::BitVector<4>{0xa}, Math::BitVector<4>{0x5}, 1.1f), Math::BitVector<4>{0x5}); |
|
|
|
CORRADE_COMPARE(Math::select(Math::BitVector<4>{0xa}, Math::BitVector<4>{0x5}, 1.1f), Math::BitVector<4>{0x5}); |
|
|
|
CORRADE_COMPARE(Math::select(Math::BitVector<4>{0xa}, Math::BitVector<4>{0x5}, Vector4{1.1f, -1.0f, 1.3f, 0.5f}), Math::BitVector<4>{0xf}); |
|
|
|
CORRADE_COMPARE(Math::select(Math::BitVector<4>{0xa}, Math::BitVector<4>{0x5}, Vector4{1.1f, -1.0f, 1.3f, 0.5f}), Math::BitVector<4>{0xf}); |
|
|
|
|
|
|
|
|
|
|
|
/* Wrapped types */ |
|
|
|
|
|
|
|
CORRADE_COMPARE(Math::select(true, false, 0.5_degf), true); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void FunctionsTest::fma() { |
|
|
|
void FunctionsTest::fma() { |
|
|
|
|