Commit Graph

4652 Commits

Author SHA1 Message Date
EZForever
2bb0fb3999 Add test case for glm::angle() sign bug introduced by #946 2020-10-28 17:26:53 +08:00
Zuzu-Typ
b7f209b18d
Fixed unpackUnorm
Should use the same float type as defined in the template.
2020-10-04 14:40:02 +02:00
koladonia
5b23dcab71 Fixed calculation of m02 minor for mat4x4 adjugate 2020-09-30 03:29:31 +03:00
Gottfried Leibniz
ce3650f0f2 fix: isMultiple
Function declaration has it returning ``vec<L, bool, Q>``, however, the
function uses the equality operator (which only returns a bool). Usage of the
function will generate "no viable conversion ..." compilation errors.
2020-09-25 10:58:35 -03:00
Gottfried Leibniz
c00f046c85 fix: fastNormalize ambiguity
Declarations in fast_square_root.hpp do not match qualifiers
fast_square_root.inl; will generate: "call to 'fastNormalize' is ambiguous"
errors.
2020-09-24 11:27:06 -03:00
Gottfried Leibniz
593415108d fix: scalebias
template glm::qualifier 'Q' cannot be inferred; compiler will ignore it.
2020-09-23 22:56:48 -03:00
Gottfried Leibniz
ebf4e9eaa2 fix: unpackUnorm type 2020-09-22 00:40:47 -03:00
Gottfried Leibniz
96558e896b fix: intersectLineTriangle types 2020-09-22 00:37:56 -03:00
Gottfried Leibniz
c18ec93b0e fix: orientate3 types 2020-09-22 00:36:43 -03:00
Gottfried Leibniz
93e573f7b1 fix: axisAngle
invalid epsilon comparison
2020-09-22 00:35:07 -03:00
Gottfried Leibniz
d9124820ed fix: fastExp promotion
implicit conversion increases floating-point precision: 'float' to 'double'
2020-09-22 00:29:59 -03:00
Gottfried Leibniz
ebfcde733a fix: missing type_quat header
Fixes: no matching function for call to 'inverse'
2020-09-22 00:27:32 -03:00
Amaury Le Leyzour
b43fa52360 Change the logic of defaulted constructors
Defaulted functions should not impact the constructor if the user
requests GLM_FORCE_CTOR_INIT.
2020-09-02 11:45:30 -07:00
Christophe
b3f8772026
Merge pull request #1022 from qsantos/fix-small-angle-quaternion-zero-test
Fix handling of small magnitude quaternions #1022
2020-08-30 14:56:02 +02:00
Christophe
45271404e6
Merge pull request #1026 from manylegged/master
make GLM_CONFIG_XYZW_ONLY work with GLM_SWIZZLE_FUNCTION #1026
2020-08-30 14:54:30 +02:00
Christophe
72022c2cf7
Merge pull request #1024 from bjornwah/fix_compiler_warnings
Fix compiler warnings #1024
2020-08-30 14:52:21 +02:00
Christophe
69a3ab22ab
Merge pull request #1025 from waywardmonkeys/fix-opencloth-link
Fix link to opencloth. #1025
2020-08-30 14:51:15 +02:00
Arthur Danskin
2eeb2662a6 spaces->tabs 2020-08-08 17:36:34 -04:00
Arthur Danskin
dc1d613f55 Merge branch 'master' of github.com:manylegged/glm into master 2020-08-08 17:29:57 -04:00
Arthur Danskin
9627450ef8 allow force_xyzw to work with function swizzleing 2020-08-08 17:29:51 -04:00
Bjorn Wahlstrand
6fdeff4d67 Fixed compiler warnings
g++-10.1.0/c++20:

'error: compound assignment with ‘volatile’-qualified left operand is deprecated [-Werror=volatile]'
2020-08-05 15:15:57 -07:00
Bruce Mitchener
e7554a5d88 Fix link to opencloth. 2020-08-04 21:12:00 +07:00
Quentin Santos
d6d272e9a0 Fix handling of small magnitude quaternions
The special case handling in glm::qua::pow is specifically intended for
the case when the magnitude is null. Even for magnitudes smaller than
epsilon, the common formula should be used. Because comparing a
floating-point value by equality triggers a warning through the
-Weveverything setting of clang, it must be selectively disabled for the
condition.
2020-07-28 19:22:10 +02:00
Christophe
2929ad5a66
Merge pull request #1023 from thomasbbrunner/cmake-documentation
Improved documentation on compiling GLM with CMake #1023
2020-07-14 12:32:00 +02:00
Thomas Brunner
c49df617db Improved documentation on compiling GLM with CMake 2020-07-14 00:45:23 +02:00
Christophe
dc2a00e3a8
Merge pull request #1018 from kring/patch-1
Fix a typo in the manual, glm/geometry.hpp -> glm/geometric.hpp #1018
2020-07-09 10:43:04 +02:00
Christophe
6c97378695
Merge pull request #1011 from Bargor/master
Fixed warning when compiling with MSVS in SIMD mode #1011
2020-07-09 10:40:55 +02:00
Christophe
1e0ad71ec7
Merge pull request #1014 from serkan3k/patch-1
Fixed typo in documentation #1014
2020-07-09 10:34:45 +02:00
Christophe
949028f675
Merge pull request #1016 from brunotl/master
neon : fix "unused function" warning #1016
2020-07-09 10:33:29 +02:00
Christophe
5c285ad647
Merge pull request #1020 from r0mai/cpp14-clang
Support clang in C++1z mode #1020
2020-07-09 10:31:57 +02:00
Arthur Danskin
d2ebd5248e make GLM_FORCE_XYZW_ONLY work with GLM_SWIZZLE_FUNCTION 2020-06-29 19:59:41 -04:00
Arthur Danskin
3b3db0fc5a make GLM_CONFIG_XYZW_ONLY work with GLM_SWIZZLE_FUNCTION 2020-06-29 01:54:26 -04:00
Andras Kucsma
82e5f32f04 Support clang in C++1z mode
Certain older clang versions signal C++1z mode by defining
__cplusplus as 201406L. Support this as if it were C++14.

https://github.com/llvm/llvm-project/blob/llvmorg-3.6.2/clang/lib/Frontend/InitPreprocessor.cpp#L374
2020-06-25 15:06:19 +02:00
Daniel Scharrer
dfdeb9b284 Fix singularity in quaternion to euler angle roll conversion 2020-06-24 23:32:48 +02:00
Kevin Ring
4c79cd1781
Fix comment alignment. 2020-06-24 17:26:46 +10:00
Kevin Ring
c80fd556b6
Fix a typo in the manual, glm/geometry.hpp -> glm/geometric.hpp 2020-06-24 17:25:07 +10:00
Bruno de Lacheisserie
a584c01fb5 neon : fix "unused function" warning
static function in header file must have explicit inline specifier.
2020-06-07 12:09:55 +02:00
serkan3k
1f4ef63d00
Fixed typo in documentation
A typo in acos function description is changed.
2020-05-19 22:19:11 +03:00
Craig Bosma
f8bf087caa
Fix quaternion orientation in glm::decompose 2020-05-11 14:33:51 -05:00
Karol Kontny
e9ab34e0f0 Fixed warning when compiling with MSVS in SIMD mode 2020-05-11 15:26:46 +02:00
christophe
23e0701c04 Updated readme and GLM version 2020-05-02 19:00:56 +02:00
christophe
a44e293c40 Reading GLM version in CMake using REGEX on GLM header 2020-05-02 18:32:19 +02:00
Christophe
280ba02382
Merge pull request #1010 from C3NZ/master
Fix the readme example to successfully include `glm::pi` #1010
2020-05-01 10:54:06 +02:00
C3NZ
fc6966be28 [fix] readme to include glm::pi from scalar_constants.hpp and not constants.hpp, which seems to be where pi lives as of latest release. 2020-04-26 12:51:11 -07:00
Christophe
7574b172e9
Merge pull request #1009 from Zuzu-Typ/master
Fixed incorrect assertion for min and max #1009
2020-04-26 13:18:11 +02:00
Zuzu-Typ
b39c3550af Fixed assertion (min, max) 2020-04-23 11:07:14 +02:00
Zuzu-Typ
aa6a2757a5
Merge pull request #1 from g-truc/master
Update from master
2020-04-23 11:04:09 +02:00
Christophe
e944b22f20
Merge pull request #1008 from blat-blatnik/master
Better .natvis file #1008
2020-04-22 19:29:50 +02:00
blat-blatnik
ef44390073
Merge pull request #1 from blat-blatnik/better-natvis
Added features to the .natvis file
2020-04-17 00:37:08 +02:00
blat-blatnik
2cc2c3ae6e
Added features to the .natvis file
I've been using this natvis file in some personal projects that use GLM and I've found it to be very helpful when debugging GLM code.

vectors are displayed in the debugger like this:

glm::vec4 v(1, 2, 3, 4); // [1 2 3 4]

when expanding the view, the debugger will show each individual component, as well as the length of the vector, and hex RGBA code (for float vectors only), like this:

glm::vec4 v(0.5); // [0.5 0.5 0.5 0.5]

[len]   1
[rgba] #7F7F7F7F
x         0.5
y         0.5
z         0.5
w        0.5

Matrices are displayed in row major order when expanded in the debugger like this:

glm::mat4 m = glm::translate(glm::mat4(1), glm::vec3(1, 2, 3));
// [1 0 0 0] [0 1 0 0] [0 0 1 0] [1 2 3 1]

row 1   [1 0 0 1]
row 2   [0 1 0 2]
row 3   [0 0 1 3]
row 4   [0 0 0 1]
columns
  - col 1    [1 0 0 0]
  - col 2    [0 1 0 0]
  - col 3    [0 0 1 0]
  - col 4    [1 2 3 1]

Quaternions are displayed as: w + xi + yj + zk

glm::quat q(1, 2, 3, 4); // 1 + 2i + 3j + 4k

Dual quaternions are displayed as:

glm::dualquat dq(q, q); // [r: 1 + 2i + 3j + 4k] [d: 1 + 2i + 3j + 4k]
2020-04-17 00:35:24 +02:00