Commit Graph

2471 Commits

Author SHA1 Message Date
Christophe Riccio
ef615c8d6e Tentative fix GTX_easing on Apple Clang 2018-05-08 20:57:34 +02:00
Christophe Riccio
5c02758b15 Tentative fix GTX_easing on Apple Clang 2018-05-08 20:05:54 +02:00
Christophe Riccio
3a7168eb55 Tentative fix Clang build 2018-05-08 17:16:35 +02:00
Christophe Riccio
e2b75b6bf7 Fixed GTX_easying clang warnings 2018-05-08 14:01:29 +02:00
Christophe Riccio
4d4dbcade6 Moved bounded function to GTX_common from EXT_vector_relational as there are quite new 2018-05-08 13:34:22 +02:00
Christophe Riccio
77acd2fe40 Clarify quat_cast documentation, applying on pure rotation matrices #759 2018-05-08 12:31:05 +02:00
Christophe Riccio
1d3f8a057f Fixed GTX_easing build on Clang 2018-05-08 12:26:07 +02:00
Christophe Riccio
1cd7a47279 Fixed GTX_easing build on VS2013 2018-05-08 12:16:58 +02:00
Christophe Riccio
62dfe7adfb Fixed isnan on CUDA #727 2018-05-07 18:21:48 +02:00
Christophe Riccio
b3a24a0565 Fixed linearRand #762 2018-05-07 18:12:18 +02:00
Christophe Riccio
69f94334e0 Added GTX_easing for interpolation functions #761 2018-05-07 15:39:25 +02:00
Christophe Riccio
d53cd73a0e Fixed mising glm::precision 2018-05-07 12:14:32 +02:00
Christophe Riccio
798ab30b9d Fixed Syntax error when compiling with GLM_FORCE_CTOR_INIT and GLM_ENABLE_EXPERIMENTAL #753 2018-05-07 10:37:37 +02:00
Torbjørn Viksand
351155b9e1 Do not define GLM_CONSTEXPR_CXX14 on MSVC < 2017 2018-04-10 11:14:22 +02:00
Christophe Riccio
b8d0681725 Fixed misspelling #738 2018-03-27 19:04:44 +02:00
Christophe Riccio
8390a77b3a Added GLM_FORCE_CTOR_INIT #735 #740 2018-03-27 18:23:37 +02:00
Philippe Groarke
2cac15849b cleanup : Remove trailing whitespaces. 2018-03-25 12:44:55 -04:00
Philippe Groarke
47fa70c34b Merge branch 'master' into cleanup 2018-03-25 12:43:32 -04:00
Christophe
1a3f1f22cd
Merge pull request #712 from KageKirin/constexpr-mat-ctors
set mat<>::ctor() to be constexpr #712
2018-03-25 18:10:37 +02:00
Christophe
fdb0e43aa0
Merge pull request #744 from vitali-parkhomenko/feature/extension_for_euler_angles
Extension for Euler angles #744
2018-03-25 12:05:34 +02:00
Philippe Groarke
fd327cd341 cleanup : Remove trailing whitespaces. 2018-03-24 20:01:03 -04:00
Vitali Parkhomenko
15fb58aacb Added extraction of Euler angles from rotation matrix.
Extraction of Euler angles from rotation matrix for 11 sequences of rotation axes:
z-x-z, x-y-x, y-z-y, z-y-z, x-z-x, y-x-y, y-z-x, z-x-y, x-z-y, z-y-x, y-x-z.
2018-03-19 18:48:18 +03:00
Vitali Parkhomenko
5361f5e4ec Added creating a rotation matrix from Euler angles
Creating a rotation matrix for 10 sequences of rotation axes:
z-x-z, x-y-x, y-z-y, z-y-z, x-z-x, y-x-y, y-z-x, z-x-y, x-z-y, z-y-x.
2018-03-19 18:43:01 +03:00
Vitali Parkhomenko
5fe5f32edd Added creating a derived matrix from the rotation matrix.
Creating a derived matrix from the rotation matrix about the x-, y-, and z-axis.
2018-03-19 18:25:45 +03:00
Chris Helmich
3aebd8f8fd added GLM_CONSTEXPR_CXX14 flag to vec<>::operator= and mat<>::operator= 2018-02-05 10:43:18 +09:00
Chris Helmich
dee4f81bc7 added GLM_CONSTEXPR_CTOR_CXX14 flags to mat<>::ctors() 2018-02-05 10:39:25 +09:00
devmane144
abb7fecc5e
Update type_vec4.hpp 2018-02-01 15:01:30 -06:00
devmane144
9b621ee4db
Added the other 3 const & to the file
I added the other 3 const & that I missed.
2018-02-01 14:48:35 -06:00
devmane144
f30f012d37
Adding a const & here for consistency reasons
The other vector types have T const & scalar for their binary operator+
2018-02-01 14:41:44 -06:00
Chris Helmich
4a4af0b80e added flags GLM_CONSTEXPR_CXX14 and GLM_CONSTEXPR_CTOR_CXX14 2018-01-22 11:28:55 +09:00
Yuri Kilochek
0afc784511 Add definitions for glm::type<T> members, so that they can be used outside of constant expressions. 2018-01-07 00:17:18 +03:00
Yuri Kilochek
5441bc7a93 Merge remote-tracking branch 'upstream/master' 2018-01-07 00:02:24 +03:00
Christophe Riccio
7725407b2d Added missing quat minus operator #703 2018-01-06 19:47:01 +01:00
Christophe Riccio
6390805e6d Fixed zero as null pointer constant 2018-01-05 00:03:29 +01:00
Christophe Riccio
43179a4bc1 Fixed typo 2018-01-04 15:33:17 +01:00
Christophe
129fab1bd9
Merge pull request #711 from elect86/patch-4
Update intersect.hpp #711
2018-01-04 09:24:32 +01:00
Yuri Kilochek
1ef3e5a200 components, cols, rows are no longer defined as members of anonymous enums and are now instead static integral constants of type glm::length_t (this appears to be current approach). 2017-12-26 19:42:12 +03:00
Yuri Kilochek
7f162ff4e8 Remove redundant specializations of glm::type<mat</*...*/>> 2017-12-26 19:38:07 +03:00
Giuseppe Barbieri
83697febeb
Update intersect.hpp 2017-12-19 16:18:10 +01:00
Sergey Kosarevsky
84e6d82051 Fixed #692: sphericalRand() is doing correct distribution on a sphere 2017-12-11 18:15:20 +01:00
Christophe Riccio
529de50383 Fixed acsch #698 2017-11-22 17:36:31 +01:00
Christophe
0f956f6dbc
Merge pull request #693 from cleeus/fix-exp2-precision-with-cxx11
Fix exp2 precision with cxx11 #693
2017-11-06 17:35:27 +01:00
KUANG Fangjun
538b6b6d57
fix a typo. 2017-11-06 15:13:04 +01:00
Kai Dietrich
c79dfbc925 Use std::exp2 to implement glm::exp2 when available
Using std::exp and then a multiplication looses a lot of precision which
can cause hard to find bugs (who would expect exp2 to fail?) because all
powers of two with integer exponents can be expressed precisely
with ieee754 floating point.

This also should be good for performance, since exp2 with
integer exponent is just shifting some bits in ieee754 and
good implementers will probably leverage that to implement exp2
efficiently.
2017-10-26 09:43:47 +02:00
Christophe Riccio
fcbedf5058 Fixed glm::step that didn't work with scalars #684 2017-10-22 16:58:09 +02:00
Christophe Riccio
5dbb4470e7 Merge branch 'master' of https://github.com/g-truc/glm 2017-10-22 16:40:48 +02:00
Christophe Riccio
ad82970101 Fixed warning #685 2017-10-22 16:32:05 +02:00
Christophe
a4061b1897 Merge pull request #689 from akaltar/master
Fix warning C4309 #679 #689
2017-10-22 16:26:15 +02:00
Christophe
9d7e79de6e Merge pull request #691 from OlivierSohn/master
Fix rotation when vectors are in the same direction #691
2017-10-22 16:24:15 +02:00
Christophe Riccio
25e7bef346 Resolved uninitialized return value warnings #685 2017-10-22 15:31:47 +02:00
Olivier Sohn
ddb93dcdc2 fix build 2017-10-21 21:50:36 +02:00
Olivier Sohn
6bd81b8fbc use quat_identity 2017-10-21 21:43:47 +02:00
Olivier Sohn
6f61bb4d2e Fix rotation when vectors are in the same direction #690 2017-10-21 21:17:55 +02:00
akaltar
04819ecaae Fix #679
Fixes warning C4309 on VS2015
2017-10-20 18:42:46 +02:00
Christophe Riccio
2e43c201cd Fixed warning C4309 #679 2017-09-23 22:58:51 +02:00
Christophe Riccio
dc3e0b5ccb Added GLM_FORCE_SINGLE_ONLY to use GLM on platforms that don't support double #627 2017-09-23 16:32:25 +02:00
Christophe Riccio
aa38362b2c Added spearate functions to use both nagative one and zero near clip plans #680 2017-09-23 15:55:18 +02:00
Christophe Riccio
bfa6c9e192 - Added EXT_vector_relational: openBounded and closeBounded 2017-09-20 17:57:44 +02:00
Christophe Riccio
30ee2cd1bb - Added GTX_texture: levels function 2017-09-20 15:32:29 +02:00
Christophe Riccio
a2497e6174 Fixed glm::to_string on quaternions wrong components order #681 2017-09-20 14:29:22 +02:00
Christophe Riccio
1bf24f8344 Fixed glm::log2<int>() returns wrong value, missing static assert #683 2017-09-20 14:17:42 +02:00
CaptainCarrot
3669256fd1 Update quaternion.inl 2017-09-14 09:05:09 +02:00
CaptainCarrot
1fe48f0d09 Update quaternion.hpp 2017-09-14 09:04:09 +02:00
Tobias Widlund
c07050ef9d Fixed incorrect indentation 2017-08-31 12:42:59 +02:00
Christophe Riccio
ec5b3fd897 Fixed build #675 2017-08-30 10:28:02 +02:00
Christophe Riccio
5cf8765656 Added GTX_texture 2017-08-25 15:55:41 +02:00
Christophe Riccio
5c5cfa5b66 Merge branch 'master' of https://github.com/g-truc/glm 2017-08-25 15:11:40 +02:00
Christophe Riccio
ba4e508e98 Added make_vec* 2017-08-25 15:11:24 +02:00
Linqing Feng
a6e27e8079 fix mismatched template argument (P to Q) 2017-08-25 10:50:05 +09:00
Christophe Riccio
b5eb654ff0 Fixed Visual C++ /W4 warnings 2017-08-22 23:58:31 +02:00
Christophe Riccio
6932058f59 Fixed quaternion constructor from two vectors special cases #469 2017-08-22 22:47:36 +02:00
Aaron
d75ef41bdb Checking if either argument is nan in fmin and fmax 2017-08-21 11:16:46 -07:00
Christophe Riccio
d550798ca0 Added EXT_vec1: *vec1 types 2017-08-21 10:36:27 +02:00
Christophe Riccio
de28722e36 Added EXT_vector_relational: extend equal and notEqual to take an epsilon argument 2017-08-20 21:38:33 +02:00
Christophe Riccio
68a829e7ed Added fmin, fmax and fclamp to GTX_extended_min_max #372 2017-08-20 18:42:48 +02:00
Christophe Riccio
fc53581c68 Fixed Better follow GLSL min and max specification #372 2017-08-20 16:53:50 +02:00
Christophe Riccio
7466c4a9e7 Fixed Visual C++ warnings 2017-08-18 20:08:36 +02:00
Christophe Riccio
e1dc14ddd4 Fixed doxygen warnings 2017-08-18 12:37:44 +02:00
Christophe Riccio
bace93d798 Fixed API documentation reference 2017-08-18 12:27:47 +02:00
Christophe Riccio
72e6b8973f Updated API documentation 2017-08-17 21:00:32 +02:00
Christophe Riccio
e9f210c85f Enable /WX, warning as error on Visual Studio 2017-08-17 19:51:03 +02:00
Christophe Riccio
23db2cd8b9 Show core feature first in the API doc modules 2017-08-17 17:52:22 +02:00
Christophe Riccio
2240849164 Improve API documentation 2017-08-17 17:36:40 +02:00
Christophe Riccio
d93a3be4ac - Improved API documentation #668 2017-08-17 16:24:32 +02:00
Christophe Riccio
fdf92ba340 Avoid duplicated code 2017-08-17 15:20:23 +02:00
Christophe Riccio
4bc87efa09 Fixed build on GCC 7.1 2017-08-17 15:12:31 +02:00
Christophe Riccio
007a97216a Tentative fix for GCC 6 2017-08-17 13:22:50 +02:00
Christophe Riccio
d336d3fb27 Fixed no-documentation warnings 2017-08-17 11:40:30 +02:00
Christophe Riccio
eb8689b8b5 More use of build-in CMake features, upgraded to CMake 3.2 2017-08-17 10:54:16 +02:00
Christophe Riccio
22fe828159 Improved GTC_type_precision and added issues regarding SIMD and constexpr interaction #653 2017-08-16 22:35:29 +02:00
Christophe Riccio
fdfd03ffaf Fixed SIMD build 2017-08-16 03:43:17 +02:00
Christophe Riccio
1bbf2dafb9 Fixed SIMD build 2017-08-16 03:28:11 +02:00
Christophe Riccio
8bcf9b5ae7 Fixed SIMD build 2017-08-16 03:09:04 +02:00
Christophe Riccio
211881abf9 Fixed swizzle operators build using SIMD 2017-08-16 02:42:47 +02:00
Christophe Riccio
4c43e9e679 Fixed GTX_matrix_factorisation build 2017-08-16 02:24:28 +02:00
Christophe Riccio
f327d8e9d4 Fixed swizzle operators build 2017-08-16 02:17:25 +02:00
Christophe Riccio
62d89dcec7 Fixed swizzle operators build 2017-08-16 02:14:40 +02:00
Christophe Riccio
50202f09d9 Fixed swizzle operators build 2017-08-16 02:11:27 +02:00
Christophe Riccio
85acb8323a Fixed swizzle operators build 2017-08-16 02:06:44 +02:00
Christophe Riccio
e33108af5f Fixed shadows template parameter warnings 2017-08-16 01:56:00 +02:00