Vladimír Vondruš
2adea7674f
Math: *not* a good idea to test assertions alongside everything else.
...
Because on a no-assert build the whole test case gets skipped. So we
never know if the compiled-out assert didn't discard something
important.
4 years ago
Vladimír Vondruš
9874c44262
Don't rely on __GNUC__ being always 4 on Clang.
...
Certain Clang-based IDEs (CLion) "emulate" a compiler by inheriting all
its defines, which means one gets __clang__ defined but also __GNUC__
set to 11 or whatever, breaking all these assumptions.
4 years ago
Vladimír Vondruš
822fa0d644
Updated copyright year.
4 years ago
Vladimír Vondruš
08a6e7d957
Math: explicit test that all types are trivially copyable.
...
I saw some copy constructors here and there and wasn't sure.
5 years ago
Vladimír Vondruš
ed9deff432
Test: adapt to a less shitty CORRADE_COMPARE().
5 years ago
Vladimír Vondruš
3d136503d8
Updated copyright year.
5 years ago
Vladimír Vondruš
1026aee80e
Moved the NoInit tag from Math to the root namespace.
...
The old one is deprecated, and will be removed in a future release.
Unfortunately, to avoid deprecation warnings, all use of NoInit in the
Math library temporarily have to be Magnum::NoInit This will be cleaned
up when the deprecated alias is removed.
6 years ago
Vladimír Vondruš
19e0e96d74
Updated copyright year.
6 years ago
Vladimír Vondruš
65a2ced2a7
Make this compile and test cleanly with CORRADE_NO_ASSERT defined.
6 years ago
Vladimír Vondruš
526254912e
doc: updated credits and changelog.
6 years ago
Squareys
a0e6ac1ed0
Math: Non-const overloads for Frustum::(left|right|top|bottom|near|far|[])
...
Signed-off-by: Squareys <squareys@googlemail.com>
6 years ago
Vladimír Vondruš
36ba5f4333
Math: ensure ZeroInit and IdentityInit constructors are explicit.
...
Like NoInit ones. Not sure what I was doing there.
7 years ago
Vladimír Vondruš
3626562e1d
Adapted to Corrade changes.
...
Mostly missing includes now.
7 years ago
Vladimír Vondruš
0dd763fe9d
Math: fix deprecated build.
7 years ago
Vladimír Vondruš
53c1549e69
Math: deprecate Frustum::planes() in favor of begin()/end().
...
This allows us to get rid of the StaticArrayView, which is the last
roadblock on the way to a single-header math. The planes() are now
deprecated, along with the include, and will get removed in a future
release.
7 years ago
Vladimír Vondruš
8079cda8aa
Math: check for OOB access in Frustum::operator[]().
7 years ago
Vladimír Vondruš
2149f7b869
Wrap all tests in unnamed namespaces.
...
This makes the compiler warn about test cases that aren't ever used,
which is a good thing.
7 years ago
Vladimír Vondruš
e6b7aa12fa
Updated copyright year.
7 years ago
Vladimír Vondruš
f5b90cefba
Math: whoops, forgot about StrictWeakOrdering for Frustum.
...
Just a stretched version of the test for Matrix4. Hope that's okay.
8 years ago
Vladimír Vondruš
623fa97970
Updated copyright year.
8 years ago
Vladimír Vondruš
46e118879f
Test: use Containers::arrayView() and arrayCast() to simplify code.
9 years ago
Vladimír Vondruš
7a16273e5d
Updated copyright year.
9 years ago
Vladimír Vondruš
a8d1fc4d84
Math: work around constexpr issues on old GCCs in Frustum test.
...
Travis CI GCC 4.7 and Android NDK GCC 4.9 fail to compile that. GCC 6
works, not sure about GCC 5.
10 years ago
Vladimír Vondruš
e75bef1d53
Math: MSVC 2015 workarounds for constexpr in Frustum tests.
10 years ago
Vladimír Vondruš
b6858030b8
Math: ability to convert Frustum from/to external representations.
10 years ago
Vladimír Vondruš
01fa24910f
Math: conversion constructor for Frustum.
10 years ago
Vladimír Vondruš
3952a20099
Math: verify that the Frustum constructor is implicit.
10 years ago
Vladimír Vondruš
8d1d786698
Math: more Frustum data access functions, test for constexprness.
10 years ago
Vladimír Vondruš
3e2464cded
Math: default/identity and NoInit constructors for Frustum, tests.
10 years ago
Vladimír Vondruš
310e1c1c25
Math: noexcept constructor for Frustum.
10 years ago
Vladimír Vondruš
54d1aefcba
Math: equality comparison for Frustum.
...
Together with the debug operator it allows for much simpler testing.
10 years ago
Vladimír Vondruš
376ea1e0b2
Math: debug operator for Frustum.
10 years ago
Vladimír Vondruš
b7eb367dde
Math: cleanup, code compression.
10 years ago
Squareys
0062fbf78e
Math: Add rudimentary Frustum class
...
Signed-off-by: Squareys <Squareys@googlemail.com>
10 years ago