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
Kai Dietrich
708a886bb0
Add a CXX11-conditional test for exp2 precision with larger exponents
2017-10-26 09:41:15 +02:00
Christophe Riccio
9e0c716372
Removed VC 2015 that time out for some reasons... :/
2017-10-22 17:26:42 +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
7733266417
Fixed Visual C++ automated tests
2017-09-23 23:06:27 +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
083782185e
Added openBounded and closeBounded
2017-09-20 23:10:52 +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
Christophe
5606dd1aac
Merge pull request #682 from CaptainCarrot/Quaternion-Look-At
...
quatLookAt: removed internal normalization of input direction #682
2017-09-20 14:03:30 +02:00
Christophe Riccio
5360662d77
Fixed test
2017-09-20 13:42:13 +02:00
CaptainCarrot
62433e1f40
Update gtx_quaternion.cpp
2017-09-14 09:33:49 +02:00
CaptainCarrot
e28dd1db59
Update gtx_quaternion.cpp
2017-09-14 09:08:44 +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
Christophe
13ccb5154f
Merge pull request #676 from therocode/master
...
Fixed incorrect indentation #676
2017-08-31 12:57:21 +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
e8e8d3607c
Fixed test build
2017-08-25 21:14:23 +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
Christophe
793f2fe9f2
Merge pull request #674 from feng-lab/fixMismatchedPandQ
...
fix mismatched template argument (P to Q) #674
2017-08-25 10:25:03 +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
Christophe
4e0c87683c
Merge pull request #672 from amc522/master
...
Fixing checks for nan in fmin/fmax #672
2017-08-21 21:41:48 +02:00
Aaron
8150e4848b
Added more testing for fmin/fmax nan cases
2017-08-21 11:40:37 -07: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
3358f33870
Fixed Visual C++ warnings
2017-08-18 20:09:46 +02:00
Christophe Riccio
7466c4a9e7
Fixed Visual C++ warnings
2017-08-18 20:08:36 +02:00
Christophe Riccio
d0ed6aef21
Fixed Visual C++ /W4 warnings
2017-08-18 18:41:04 +02:00