Commit Graph

4714 Commits

Author SHA1 Message Date
SGrottel
0f5b544d5d Corrected errors on Xcode C++98 pure related to language extensions accidentially used. 2021-05-10 16:38:38 +02:00
SGrottel
b8adc27808 Removed lambdas and initializer list ctors to be compatible with older cpp standards. 2021-05-10 15:45:42 +02:00
Christophe
ddb6678c23 Use default clang version of distribution 2021-05-10 14:11:17 +02:00
Christophe
4abd46483a Fix Travis C.I. build 2021-05-10 13:34:39 +02:00
SGrottel
dd40903b74 Implemented 'principle component analysis' utility in gtx, including tests 2021-05-10 13:14:29 +02:00
Christophe
6e2b7eedd2
Merge pull request #1069 from Blurgyy/quaternion-sane-default
Fix constructor of struct qua to honor macro "GLM_FORCE_QUAT_DATA_WXYZ" #1069
2021-05-07 09:23:48 +02:00
Gaoyang Zhang
de7c83f1b6 Update test for GLM_FORCE_QUAT_DATA_XYZW
Signed-off-by: Gaoyang Zhang <gy@blurgy.xyz>
2021-05-06 14:12:41 +08:00
Gaoyang Zhang
59ddeb7d1c Replace GLM_FORCE_QUAT_DATA_WXYZ with GLM_FORCE_QUAT_DATA_XYZW
The default data layout for quat has been changed to w,x,y,z to agree
with order of input parameters for quat's constructor.

Signed-off-by: Gaoyang Zhang <gy@blurgy.xyz>
2021-05-06 14:12:41 +08:00
Gaoyang Zhang
d573bf099a Revert "Fix constructor of struct qua to honor macro "GLM_FORCE_QUAT_DATA_WXYZ""
This reverts commit f931c4996a.
2021-05-06 14:12:23 +08:00
Gaoyang Zhang
f6f3596a6b Revert "Fix construction of identity quaternion"
This reverts commit 37842c7400.
2021-05-06 14:12:22 +08:00
Gaoyang Zhang
43b81f49fc Revert "Fix test due to change of default constructor of qua"
This reverts commit e800c41c0a.
2021-05-06 14:12:16 +08:00
Gaoyang Zhang
e800c41c0a Fix test due to change of default constructor of qua
Signed-off-by: Gaoyang Zhang <gy@blurgy.xyz>
2021-05-03 00:32:17 +08:00
Gaoyang Zhang
37842c7400 Fix construction of identity quaternion
Signed-off-by: Gaoyang Zhang <gy@blurgy.xyz>
2021-05-03 00:31:09 +08:00
Gaoyang Zhang
f931c4996a Fix constructor of struct qua to honor macro "GLM_FORCE_QUAT_DATA_WXYZ"
Signed-off-by: Gaoyang Zhang <gy@blurgy.xyz>
2021-05-02 23:09:59 +08:00
Christophe
761a842a59
Merge pull request #1062 from tksuoran/fix-cmake
Fix CMake FetchContent usage #1062
2021-04-05 13:27:48 +02:00
Christophe
820607ad2b
Merge pull request #1064 from SergeyKrivohatskiy/fix-axisAngle-for-small-angles
Fix axis angle implementation for near zero angles and near PI angles #1064
2021-04-05 13:25:56 +02:00
Christophe
50fdc42f13
Merge pull request #1065 from psychocoderHPC/fix-cudaClangCompile
fix clang CUDA compile #1065
2021-04-05 13:23:00 +02:00
René Widera
59fbd31552 fix clang CUDA compile
Fix CUDA compile issue when using clang.

```
glm/gtc/type_ptr.inl:257:22: error: __host__ function 'make_vec4' cannot overload __host__ __device__ function 'make_vec4'
6946        inline vec<4, T, Q> make_vec4(vec<4, T, Q> const& v)
```
2021-03-31 14:13:53 +02:00
Sergey Krivohatskiy
b5d4757580 compilation fix
Signed-off-by: Sergey Krivohatskiy <s.krivohatskiy@gmail.com>
2021-03-23 15:22:16 +03:00
Sergey Krivohatskiy
e81a9c4baa compilation fixes
Signed-off-by: Sergey Krivohatskiy <s.krivohatskiy@gmail.com>
2021-03-23 15:03:38 +03:00
Sergey Krivohatskiy
2010c883d5 formatting fix
Signed-off-by: Sergey Krivohatskiy <s.krivohatskiy@gmail.com>
2021-03-23 14:33:11 +03:00
Sergey Krivohatskiy
2b766d5303 a few more tests for axisAngle
Signed-off-by: Sergey Krivohatskiy <s.krivohatskiy@gmail.com>
2021-03-23 14:30:52 +03:00
Sergey Krivohatskiy
df7b5bda7c axisAngle epsilon changed to work as expected on small angles
also small refactoring
also single epsilon is used
also passes new axisAngle tests now

Signed-off-by: Sergey Krivohatskiy <s.krivohatskiy@gmail.com>
2021-03-23 14:28:36 +03:00
Sergey Krivohatskiy
c9c656ce31 axisAngle refactoring
Signed-off-by: Sergey Krivohatskiy <s.krivohatskiy@gmail.com>
2021-03-23 14:27:00 +03:00
Sergey Krivohatskiy
57c3be0b9f Added axisAngle tests
Signed-off-by: Sergey Krivohatskiy <s.krivohatskiy@gmail.com>
2021-03-23 14:24:41 +03:00
Timo Suoranta
1771b1127f Fix CMake FetchContent usage 2021-03-11 13:20:56 +02:00
Christophe
ace16e4778
Merge pull request #1060 from imgly/fix/simd-vec4-compare
Fixed the SIMD (SSE) implementation of compute_vec4_equal for floats #1060
2021-03-08 11:01:35 +01:00
Christophe
9203edd741
Merge pull request #1054 from kiroma/master
Create an install and package targets in cmake tree #1054
2021-03-08 10:55:19 +01:00
kiroma
ca1f397fe9
Merge pull request #1 from jaimedelreyg/feature/add_uninstall_to_cmake
Add target make uninstall in cmake files
2021-03-07 17:23:49 +01:00
Christophe
fe9bb21f1f
Merge pull request #1058 from SergeyKrivohatskiy/patch-1
Fix in axisAngle implementation #1058
2021-03-07 09:37:42 +01:00
Christophe
5e243a8efa
Merge pull request #1061 from g-truc/revert-1012-master
Revert "Fix quaternion orientation in `glm::decompose`" #1061 #1012
2021-03-07 09:36:25 +01:00
Christophe
bbedf96c16
Revert "Fix quaternion orientation in glm::decompose" 2021-03-06 17:12:03 +01:00
Jaime Del Rey Garcia
87de7f3f10 Add target make uninstall in cmake files 2021-03-06 08:58:58 +01:00
Christophe
64be09e1b1
Merge pull request #1057 from nick-dumas/master
Fix squered typo #1057
2021-03-02 22:49:53 +01:00
Keiwan Donyagard
a6fcdd0cbc Fixed the SIMD implementation of compute_vec4_equal for floats 2021-02-24 10:51:20 +01:00
Sergey Krivohatskiy
acab24129d
Fixed axisAngle implementation
`acos` domain is in range [-1.0, 1.0]. Due to inaccuracies the value `angleCos` may be slightly outside that range for a correct matrix and `acos(angleCos)` produces `NaN` in that case.

The fix is we check `angleCos` value and return `acos(1)` for `angleCos > 1` and `acos(-1)` for `angleCos < -1`.

The original code checked only for `angleCos` close to `1.0` and returned an incorrect value for `acos(1)`, which is `0`, not  `pi/4`.
2021-02-20 20:16:31 +03:00
Nick Dumas
2fc22e3f3e Fix squered typo
Squered -> Squared
2021-02-16 09:56:30 +08:00
Christophe
6347f62261
Merge pull request #1056 from nowakowsk/adjugate_fix
Missing transposition step in adjugate() for mat2 and mat4 #1056
2021-02-15 14:12:06 +01:00
nowakowsk
eabaf2338b Fixed unit tests for pre-C++11 compilers 2021-02-14 13:03:57 +01:00
nowakowsk
6437133cd2 fix: add missing transposition to adjugate for mat2 and mat4 2021-02-14 12:14:59 +01:00
Krzysztof Kurek
887827b762
Adjust CI to use the newly generated config files 2021-01-31 16:13:05 +01:00
Krzysztof Kurek
3a4b55020e
Make sure installed glm::glm has the includes 2021-01-31 14:50:00 +01:00
Krzysztof Kurek
dd457459b2
Update manual to reflect changes 2021-01-31 14:10:15 +01:00
Krzysztof Kurek
5797373dc2
Fix an issue with CMake versions 3.14 and earlier 2021-01-31 00:49:58 +01:00
Krzysztof Kurek
e936ed35ea
Resolve issues with CMake versions 3.13 and earlier 2021-01-30 23:59:37 +01:00
Krzysztof Kurek
631faffab3
Export targets from top-level CMake file
With some slight reordering of the code
2021-01-30 23:35:37 +01:00
Krzysztof Kurek
3e99386b6f
Include CPack if project is built as standalone 2021-01-30 23:00:41 +01:00
Krzysztof Kurek
f64239743e
Remove the cmake dir superseded by generated files 2021-01-30 22:33:55 +01:00
Krzysztof Kurek
6c9d74c3e0
Generate glmConfigVersion, move glmConfig to its own folder 2021-01-30 22:26:46 +01:00
Krzysztof Kurek
6059c5767b
Export the GLM target 2021-01-30 21:08:48 +01:00