Thibault de Villèle [UM]
1c18fca789
Fix GLM_EXT_matrix_common : row to column-major
...
The previous patch made the incorrect assumption matrices were row-major
instead of column-major (got the two mixed up in my head).
This fixes this problem.
Also, this extends the test files to cover all matrix sizes (not types,
that would be redundant).
ago%!(EXTRA string=3 years)
Thibault de Villèle [UM]
48e1ff3fee
Add glm::abs() function for the glm::mat<> class
...
This is added as part of the GLM_EXT_matrix_common extension, as this
function is not provided by the core GLSL specification (version 4.20).
The implementation of this glm::abs(mat<>) function mirrors the
glm::abs(vec<>) implementation. It should be functionning the same in
every way as the vec implementation.
Bonus points : AFAICT this allows to vectorize operations on compilers
that support optimization of these patterns, just like the functor1<>
struct in _vectorize.hpp for vectors.
ago%!(EXTRA string=3 years)
Charles Huber
4b6284e39d
GCC: Fix noexcept warnings on hash functions
...
Fix warnings on hash functions with GCC and -Wnoexcept:
* Add GLM_HAS_NOEXCEPT flag & GLM_NOEXCEPT #define to setup.hpp.
* Add GLM_NOEXCEPT to hash functions in hash.hpp.
* Add GLM_NOEXCEPT to matrix operator[] accessors.
* Add gtx_hash.cpp and a test to verify all hash overloads compile.
Configure with -DCMAKE_CXX_FLAGS="-Werror -Wnoexcept" to test.
ago%!(EXTRA string=3 years)
arikanli
0f318f63af
feat: add shearing matrix operation on matrix_transfom
ago%!(EXTRA string=3 years)
SGrottel
104c1214ee
Avoid fp comparison of `glm::sign` return value by introducing a sign comparison helper function
ago%!(EXTRA string=4 years)
SGrottel
5dbba35275
Changed test functions to explicitly define comparison epsilons.
...
Updated 1aga expected computation results, based on external experiment based on precise / symbolic computation
Unified result comparison to always use `vectorEpsilonEqual` or `matrixEpsilonEqual`
ago%!(EXTRA string=4 years)
SGrottel
d71dba9603
Introduced a second, less precise comparison epsilon for the tests for now.
ago%!(EXTRA string=4 years)
SGrottel
18d9b97aa4
Further increased comparison float epsilon, and further test batch `testEigenvectors` also failes.
...
Added debug output to `testEigenvectors` in case the error persists.
ago%!(EXTRA string=4 years)
SGrottel
593b7cc36b
Increased float comparison epsilon to pass tests.
ago%!(EXTRA string=4 years)
SGrottel
a0ccbcc63d
Added further details on the comparison issue with covariance matrices on some VMs.
...
Also corrected some code style guide, and changed `nullptr` to `GLM_NULLPTR` for better compatibility.
Tests are now executed in blocks of related tests, and only inbetween blocks the tests will exit.
ago%!(EXTRA string=4 years)
SGrottel
d0d7945141
Additional debug output to investigate why `test-gtx_pca` fails on some VMs on Travis.
...
Also, reworked the `#if` about CXX11; did not seem to work correctly.
ago%!(EXTRA string=4 years)
SGrottel
c792a0a221
Disabled tests requiring random engine when CXX11 STL is not available.
...
Added missed `typename` keywords, and fixed variable initialization.
ago%!(EXTRA string=4 years)
SGrottel
0f5b544d5d
Corrected errors on Xcode C++98 pure related to language extensions accidentially used.
ago%!(EXTRA string=4 years)
SGrottel
b8adc27808
Removed lambdas and initializer list ctors to be compatible with older cpp standards.
ago%!(EXTRA string=4 years)
SGrottel
dd40903b74
Implemented 'principle component analysis' utility in gtx, including tests
ago%!(EXTRA string=4 years)
Gaoyang Zhang
de7c83f1b6
Update test for GLM_FORCE_QUAT_DATA_XYZW
...
Signed-off-by: Gaoyang Zhang <gy@blurgy.xyz>
ago%!(EXTRA string=4 years)
Gaoyang Zhang
43b81f49fc
Revert "Fix test due to change of default constructor of qua"
...
This reverts commit e800c41c0a
.
ago%!(EXTRA string=4 years)
Gaoyang Zhang
e800c41c0a
Fix test due to change of default constructor of qua
...
Signed-off-by: Gaoyang Zhang <gy@blurgy.xyz>
ago%!(EXTRA string=4 years)
Sergey Krivohatskiy
b5d4757580
compilation fix
...
Signed-off-by: Sergey Krivohatskiy <s.krivohatskiy@gmail.com>
ago%!(EXTRA string=4 years)
Sergey Krivohatskiy
e81a9c4baa
compilation fixes
...
Signed-off-by: Sergey Krivohatskiy <s.krivohatskiy@gmail.com>
ago%!(EXTRA string=4 years)
Sergey Krivohatskiy
2010c883d5
formatting fix
...
Signed-off-by: Sergey Krivohatskiy <s.krivohatskiy@gmail.com>
ago%!(EXTRA string=4 years)
Sergey Krivohatskiy
2b766d5303
a few more tests for axisAngle
...
Signed-off-by: Sergey Krivohatskiy <s.krivohatskiy@gmail.com>
ago%!(EXTRA string=4 years)
Sergey Krivohatskiy
57c3be0b9f
Added axisAngle tests
...
Signed-off-by: Sergey Krivohatskiy <s.krivohatskiy@gmail.com>
ago%!(EXTRA string=4 years)
nowakowsk
eabaf2338b
Fixed unit tests for pre-C++11 compilers
ago%!(EXTRA string=4 years)
nowakowsk
6437133cd2
fix: add missing transposition to adjugate for mat2 and mat4
ago%!(EXTRA string=4 years)
christophe-lunarg
bec41ffe51
Fix AVX2 detection
ago%!(EXTRA string=4 years)
Christophe
561fbbd94c
Added *GLM_EXT_matrix_integer* with tests
ago%!(EXTRA string=4 years)
Christophe
8693d06297
Fix glm::acsch tests
ago%!(EXTRA string=4 years)
Christophe
c31b5aecaa
fix reciprocal test
ago%!(EXTRA string=4 years)
Christophe
da542d6354
fix reciprocal test
ago%!(EXTRA string=4 years)
Christophe
2a8664fe50
Added and to *GLM_EXT_scalar_common* and *GLM_EXT_vector_common*
ago%!(EXTRA string=4 years)
Christophe
2593c9c8b3
Added GLM_EXT_scalar_reciprocal and GLM_EXT_vector_reciprocal with tests
ago%!(EXTRA string=4 years)
EZForever
2bb0fb3999
Add test case for glm::angle() sign bug introduced by #946
ago%!(EXTRA string=5 years)
Kontny Karol
31d01b525e
Quaternion slerp overload which interpolates with extra spins
...
Signed-off-by: Karol Kontny <barolek@gmail.com>
ago%!(EXTRA string=5 years)
Christophe Riccio
a4bf8867c2
Added clamp, repeat, mirrorClamp and mirrorRepeat function to GLM_EXT_scalar_commond and GLM_EXT_vector_commond extensions with tests
ago%!(EXTRA string=5 years)
Christophe Riccio
9e7a486c0e
Added matrix integer extensions and tests
ago%!(EXTRA string=5 years)
Christophe Riccio
684817db46
Clean up integer precision
ago%!(EXTRA string=5 years)
Christophe Riccio
6bd53cc9e5
Added files for EXT packing extensions
ago%!(EXTRA string=5 years)
Christophe Riccio
8e58cdbbf8
- Added GLM_EXT_vector_intX_sized and GLM_EXT_vector_uintX_sized extensions
ago%!(EXTRA string=5 years)
Christophe Riccio
028b303a65
Fixed CXX tests
ago%!(EXTRA string=5 years)
Christophe Riccio
79b5197e5d
Fixed CXX tests
ago%!(EXTRA string=5 years)
Christophe Riccio
a68949eba4
Fixed force cxx version tests
ago%!(EXTRA string=5 years)
Christophe Riccio
2d8ccef1af
Tentative fix of GLM_FORCE_QUAT_DATA_WXYZ on Clang with tests
ago%!(EXTRA string=5 years)
Christophe Riccio
3ee3659adb
Added force defines tests
ago%!(EXTRA string=5 years)
Christophe Riccio
85e491b30c
Tentative fix of GLM_FORCE_QUAT_DATA_WXYZ on Clang with tests
ago%!(EXTRA string=5 years)
Christophe Riccio
436579b37e
Fixed Wimplicit-int-float-conversion warnings with clang 10+ #986
ago%!(EXTRA string=5 years)
Khem Raj
d2b9bbb911
Fix Wimplicit-int-float-conversion warnings with clang 10+
...
This is a new warning in clang which will be available in clang 10
onwards
Fixes
error: implicit conversion from 'const int' to 'float' may lose precision [-Werror,-Wimplicit-int-float-conversion]
ago%!(EXTRA string=5 years)
Christophe Riccio
a4b4db24bd
Fixed test target
ago%!(EXTRA string=6 years)
Christophe Riccio
919e72f5dd
Fixed equal ULP variation when using negative sign #965
ago%!(EXTRA string=6 years)
Christophe Riccio
11089f6d7e
Move CMake tests configuration in the test directory CMakeLists.txt
ago%!(EXTRA string=6 years)