Robert Chisholm
00a195c687
BugFix: CUDA RTC support.
...
Someone noticed that c6dfaed
would also catch GLM_COMPILER_GCC8
2021-05-19 14:15:57 +01:00
Christophe
dc9e555b4c
Merge pull request #1071 from sgrottel/gtx-pca
...
Implemented 'principle component analysis' utility in gtx #1071
2021-05-15 12:50:27 +02:00
Robert Chisholm
948ac3b825
Add missing statement.
...
Didn't copy this across, good thing CI caught it.
2021-05-14 10:38:02 +01:00
Robert Chisholm
aa7380ae12
Fix lint.
2021-05-13 22:33:49 +01:00
Robert Chisholm
f0f95bd3de
Correctly detect NVRTC and lack of stl support.
2021-05-13 22:13:04 +01:00
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.
2021-05-10 21:32:01 +02:00
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
SGrottel
dd40903b74
Implemented 'principle component analysis' utility in gtx, including tests
2021-05-10 13:14:29 +02: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
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
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
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
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
Christophe
fe9bb21f1f
Merge pull request #1058 from SergeyKrivohatskiy/patch-1
...
Fix in axisAngle implementation #1058
2021-03-07 09:37:42 +01:00
Christophe
bbedf96c16
Revert "Fix quaternion orientation in glm::decompose
"
2021-03-06 17:12:03 +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
nowakowsk
6437133cd2
fix: add missing transposition to adjugate for mat2 and mat4
2021-02-14 12:14:59 +01:00
Krzysztof Kurek
3a4b55020e
Make sure installed glm::glm has the includes
2021-01-31 14:50:00 +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
6059c5767b
Export the GLM target
2021-01-30 21:08:48 +01:00
Gottfried Leibniz
00c4720305
fix: isIdentity for non-symmetric matrices
2020-12-06 11:26:14 -04:00
Christophe
24a4befe80
Fix build
2020-12-01 08:57:06 +01:00
Christophe
561fbbd94c
Added *GLM_EXT_matrix_integer* with tests
2020-11-30 18:10:55 +01:00
Christophe
23dcea8995
Fix warnings
2020-11-24 12:00:31 +01:00
Christophe
2a8664fe50
Added and to *GLM_EXT_scalar_common* and *GLM_EXT_vector_common*
2020-11-23 17:02:32 +01:00
Christophe
2593c9c8b3
Added GLM_EXT_scalar_reciprocal and GLM_EXT_vector_reciprocal with tests
2020-11-23 15:33:36 +01:00
Christophe
1cf91a1009
Merge pull request #1012 from bosmacs/master
...
Fix quaternion orientation in `glm::decompose` #1012
2020-11-21 22:27:46 +01:00
Christophe
b033c73b42
Merge pull request #1019 from dscharrer/master
...
Fix singularity in quaternion to euler angle roll conversion #1019
2020-11-21 22:19:21 +01:00
Christophe
e8f2e98050
Merge pull request #1027 from amaury-ml/ctor_init
...
Change the logic of defaulted constructors #1027
2020-11-21 22:16:46 +01:00
Christophe
f52f232f59
Merge pull request #1038 from EZForever/patch-angle
...
fix: glm::angle() discards the sign of result for angles in range (2*pi-1, 2*pi) #1038
2020-11-21 22:06:08 +01:00
Christophe
4ae59db254
Merge pull request #1041 from lpisha/master
...
Remove ban on using string_cast with CUDA host code #1041
2020-11-21 21:59:09 +01:00
lpisha
051781e265
Remove ban on using string_cast with CUDA host code
...
string_cast.hpp merely detects whether the current compiler is NVCC (originally based on `if defined(__CUDACC__)` in glm/simd/platform.h) and throws an error if it is. This means string_cast.hpp cannot be included in any header which might ever be used in a CUDA project.
Of course, glm::to_string can't be used in device (GPU) code. However, the current approach to stop this is both incorrect and unnecessary. __CUDACC__ will be defined in both host and device code compilation, and glm::to_string can obviously be used in host code. The correct define is __CUDA_ARCH__ (will be defined only if compiling device code). However, there's no problem if glm::to_string is defined (the header is included) while compiling device code, as long as it's not actually used in the device code. So, throwing an error if __CUDA_ARCH__ is defined would still prevent string_cast.hpp from being included in CUDA projects.
There's actually no need for any manual check to see if glm::to_string is being used in device code, because the compiler will already check for that. It returns a std::string, which itself can't be used in device code, so it's unlikely a developer would try. And if they did, there would be errors that both glm::to_string and all the needed std::string constructors, stream operators, etc. are host-only functions.
2020-11-18 11:09:53 -08:00
RohacekD
ae6fa0872f
Adding constexpr qualifier for cross product
2020-11-17 16:58:12 +01:00
RohacekD
6ce6cd9e26
Adding constexpr qualifier for dot product
2020-11-16 20:04:06 +01:00
Christophe
596577f200
Merge pull request #1035 from koladonia/adjugate-fix
...
Fixed calculation of m02 minor for mat4x4 adjugate #1035
2020-11-09 18:10:54 +01:00
Christophe
2c36db9cf7
Merge pull request #1033 from gottfriedleibniz/patch-fastnormalize
...
fix: fastNormalize ambiguity #1033
2020-11-09 18:06:07 +01:00
Christophe
f6574ccf71
Merge pull request #1034 from gottfriedleibniz/patch-ismultiple
...
fix: isMultiple #1034
2020-11-09 17:56:22 +01:00
Christophe
9e1b2dd8bf
Merge pull request #1029 from gottfriedleibniz/patch-quat
...
fix: missing type_quat header #1029
2020-11-09 17:54:46 +01:00