Commit Graph

665 Commits

Author SHA1 Message Date
Jesse Talavera-Greenberg
4aa385a37a Change dualquat::components to 2, not 8 2015-07-25 14:21:31 -04:00
Thom de Villa
3b9e90c7b6 std::hash specialization for glm::tdualquat 2015-07-24 17:58:15 +02:00
Christophe Riccio
063c5c7367 Fixed quaternion pow #346 2015-07-24 02:11:55 +02:00
Christophe Riccio
f602c8e7ad Updated _MAYBE to follow GLM conventions 2015-07-24 02:02:24 +02:00
Christophe R.
1b9872138d Merge pull request #358 from JesseTG/jtg/preprocessor-cleanup
Simplify some preprocessor declarations #358
2015-07-24 01:52:26 +02:00
Dustin Biser
386357f612 Update norm.hpp
Fixed documentation typo for distance2 functions
"Returns the squared distance between p0 and p1, i.e., length(p0 - p1)"
changed to
"Returns the squared distance between p0 and p1, i.e., length2(p0 - p1)"
2015-07-22 11:31:45 -04:00
Jesse Talavera-Greenberg
9cc7dc1763 Simplify GLM_FORCE_EXPLICIT_CTOR declarations
- Instead of wrapping the declarations, use a macro for the keyword "explicit"
2015-07-20 20:18:24 -04:00
Jesse Talavera-Greenberg
c2078afc12 Simplify the constexpr declarations of the GLM_META_PROG_HELPERS
- No repetition
- Half the size
2015-07-20 20:15:45 -04:00
Christophe Riccio
76bd630bbd Fixed isfinite with C++98 compilers #343 2015-07-19 16:32:36 +02:00
Christophe Riccio
c90f7b0973 Fixed build 2015-07-19 01:04:07 +02:00
Christophe Riccio
38c9cd6cba Added GLM_META_PROG_HELPERS #350 2015-07-19 00:25:33 +02:00
Jesse Talavera-Greenberg
38f63d3943 Add static rows, cols, prec, and components fields to all matrix types 2015-07-03 15:21:11 -04:00
Jesse Talavera-Greenberg
5d05c8c1f7 Correct component amounts for simqQuat and simdVec4 2015-07-03 15:00:37 -04:00
Jesse Talavera-Greenberg
a9c26d065b Add static components and prec members to all vector and quaternion types 2015-07-03 14:57:46 -04:00
Christophe Riccio
98a736bcf1 Merge pull request #341 from morganbengtsson/master
Fixed Small documentation mistake in intersect.hpp, plane instead of triangle. #341
2015-06-28 14:25:07 +02:00
Christophe Riccio
0141954756 Added mirror repeat 2015-06-27 20:12:27 +02:00
Christophe Riccio
ff1f50bb15 Added GTX_wrap 2015-06-27 19:36:03 +02:00
Christophe Riccio
08eedc6209 Added experiment for new fastCos. More sRGB tests. 2015-06-27 18:36:17 +02:00
morgan
d69aa08187 Small documentation mistake in intersect.hpp, plane instead of triangle. 2015-05-16 12:29:37 +02:00
Christophe Riccio
303a523325 Fixed C++98 build 2015-05-01 20:49:58 +02:00
Christophe Riccio
df8cd22706 Fixed specifier removal by 'std::make_pair<>' #333 2015-05-01 20:01:07 +02:00
jan p springer
e590111375 added: 'operator<<(std::pair<tmat4x4<T,P>, tmat4x4<T,P>>)' routed to 'operator<<(std::pair<tmat4x4<T,P> const, tmat4x4<T,P> const>)' to avoid specifier removal by 'std::make_pair<>' and follow-up type-deduction problems; see [http://stackoverflow.com/questions/29985791/] 2015-05-01 13:42:56 +01:00
Christophe Riccio
f51bcc70cc Added <glm/gtx/hash.hpp> to perform to perform std::hash on GLM types #320 2015-03-15 23:52:22 +01:00
Christophe Riccio
61e9b88db0 Merge pull request #320 from plasmacel/master
Add std::hash support for glm types (with precision support) #320
2015-03-15 22:49:29 +01:00
Christophe Riccio
14c3673b39 Merge pull request #311 from jzrake/master
Add functions eulerAngleXYZ and extractEulerAngleXYZ #311
2015-03-15 21:34:52 +01:00
Thom de Villa
b1c45d3ce3 add precision support to std::hash glm specializations 2015-03-07 14:25:59 +01:00
Thom de Villa
36e2bdd294 comment fix 2015-03-07 14:04:56 +01:00
Thom de Villa
44c3453c84 std::hash support for glm types
std::hash template specializations implemented for vec, quat and mat
types
2015-03-07 14:01:55 +01:00
Christophe Riccio
dc86af5d29 Merge 0.9.6 2015-02-19 12:04:37 +01:00
Christophe Riccio
7e6b502639 Fixed default precision for quat and dual_quat type #312 2015-02-19 11:57:35 +01:00
Jonathan Zrake
d3313421c6 Add functions eulerAngleXYZ and extractEulerAngleXYZ 2015-02-15 14:39:02 -05:00
Christophe Riccio
6af33a31fd Merged 0.9.6 branch 2015-02-15 16:35:46 +01:00
Christophe Riccio
042270d049 Added 'fmod' overload to GTX_common with tests, Removed integer specification for 'mod' in GTC_integer #308 2015-02-15 12:38:23 +01:00
Christophe Riccio
7844332816 Fixed memory corruption (undefined behaviour) #303 2015-02-14 13:56:48 +01:00
Pavel Krajcevski
2ba1ae95c2 Remove testing #ifdefs 2015-02-13 00:30:25 -08:00
Pavel Krajcevski
a53696a2dc Specialize template for integer YCoCgR conversion to use bitshifts 2015-02-13 00:22:03 -08:00
Christophe Riccio
4ad2ad84a8 Merge pull request #301 from regnirpsj/master
added: operator<< for tvec1<> #301
2015-02-09 23:05:10 +01:00
jan p springer
d30aba45e0 added: operator<< for tvec1<> 2015-01-14 22:10:55 +00:00
Christophe Riccio
4eec569f92 Disabled GTX_scalar_multiplication for GCC, failing to build tests #242 2015-01-10 13:45:41 +01:00
Christophe Riccio
025a4c79ff Fixed bug #293 2015-01-09 19:55:11 +01:00
Christophe Riccio
3226580a36 Merge 0.9.6 branch 2015-01-09 19:52:47 +01:00
Christophe Riccio
07913880c4 - Fixed conflict with Xlib #define True 1 #293 2014-12-30 14:48:25 +01:00
Jonathon Racz
dd948d3cc2 Fixed inconsistency in templated value 2014-12-29 22:57:51 -05:00
Jonathon Racz
2d30a6e21a Fixed VS2010 templating issues with decompose function caused by ambiguous type conversions and constants. 2014-12-29 17:58:16 -05:00
Christophe Riccio
fc8b4404f0 Fixed faceforward build #289 2014-12-19 23:54:25 +01:00
Christophe Riccio
2117c53dbf Fixed conflict between GTX_compatibility and GTC_quaternion #286 2014-12-10 09:39:23 +01:00
Christophe Riccio
e4ccd06e29 Second set of fixes for Android #284 2014-12-09 23:54:03 +01:00
Christophe Riccio
732b40c251 Fixed 64 bits integer GTX_string_cast to_string on VC 32 bit compiler 2014-12-05 18:09:48 +01:00
Christophe Riccio
0d73f61828 Deprecate GTX_bit 2014-11-30 16:59:49 +01:00
Christophe Riccio
ff3872c859 Reducing header dependences 2014-11-29 22:57:33 +01:00
Christophe Riccio
67964bfd0a Matching headers and implementations 2014-11-29 22:13:30 +01:00
Christophe Riccio
be0c5da488 size_type and length_type for all types 2014-11-29 00:53:47 +01:00
Christophe Riccio
cdd36afdc1 Fixed build 2014-11-26 00:33:24 +01:00
Christophe Riccio
3f48ffefb0 Updated license 2014-11-26 00:27:12 +01:00
Christophe Riccio
c273be264c More fixes for doxygen 2014-11-25 01:08:52 +01:00
Christophe Riccio
d276bf3b98 Doxygen fixes 2014-11-25 00:56:37 +01:00
Christophe Riccio
4f5bd21a5e Doxygen doc fixes 2014-11-25 00:16:03 +01:00
Christophe Riccio
7621a735a3 Move GTC_type_aligned to GTX extensions 2014-11-23 20:58:09 +01:00
Christophe Riccio
4f4763600f Added log2 to GTC_integer 2014-11-19 23:09:02 +01:00
Christophe Riccio
2d50df61c3 Initial structure for GTC_integer 2014-11-17 23:56:41 +01:00
Christophe Riccio
3adf263341 Added GLM_FORCE_EXPLICIT_CTOR to require explicit type conversions #269 2014-11-17 22:59:10 +01:00
Christophe Riccio
bcd33a89df Fixed build issue 2014-11-16 18:09:32 +01:00
Christophe Riccio
2d48d922bd Updated VC support compilers list 2014-11-16 01:12:18 +01:00
Christophe Riccio
18b8e2fd4a Fixed Clang warnings 2014-11-15 23:03:53 +01:00
Christophe Riccio
0b8ca1a5b6 Added a CMake option to execute GLM performance tests. Made quat and dualquat trivially constructible #263 2014-11-15 00:05:52 +01:00
Christophe Riccio
cfce5f436c Merge more precision for fastCos and fastSin #264 2014-11-14 21:28:58 +01:00
Mathias Labeyrie
72a5de2320 branchless wrapAngle 2014-11-05 13:57:32 +01:00
Mathias Labeyrie
710e13a8e6 Much more precise fastCos and fastSin
fastCos and fastSin had a max error of ~0.2 on [-pi pi].
The updated version is ~0.000007.
2014-11-05 11:12:52 +01:00
Christophe Riccio
6f3765d281 First draft of GTC_round 2014-11-04 00:06:20 +01:00
Christophe Riccio
41c00872a1 Fixed GCC build 2014-11-01 23:35:10 +01:00
Christophe Riccio
23d2735e03 Updated GTX_multiple 2014-11-01 03:00:42 +01:00
Christophe Riccio
4b4b6f6cac Removed macros 2014-11-01 01:44:37 +01:00
Christophe Riccio
86eae996e4 Removed VECTORIZE_VEC for GTX 2014-11-01 00:21:10 +01:00
Christophe Riccio
0de2f5c587 Added powerOfTwo functions 2014-10-27 19:07:23 +01:00
Christophe Riccio
d3b368b65c Added GTC_integer, deprecated GTX_bit 2014-10-26 19:22:19 +01:00
Christophe Riccio
69274e740c Promoted bitfieldRotate[Right|left] and bitfieldFill[zero|one] 2014-10-26 17:31:49 +01:00
Christophe Riccio
8dd3ec02ea Removed bitRevert, duplicated of bitfieldReverse 2014-10-26 16:56:31 +01:00
Christophe Riccio
087d6292e3 Added GTC_bitfield extension, promoted GTX_bit 2014-10-26 00:22:08 +02:00
Christophe Riccio
0c522117c8 Opimization of mask, bitfieldInsert, bitfieldExtract and bitCount 2014-10-25 21:16:49 +02:00
Christophe Riccio
790f520488 Clean up coding style 2014-10-19 18:15:03 +02:00
Christophe Riccio
bcd07b50f3 - Added GLM_FORCE_NO_CTOR_INIT 2014-10-19 03:33:14 +02:00
Christophe Riccio
d298b34c19 Add detail namespace for number_of_elements 2014-10-18 13:23:05 +02:00
Christophe Riccio
857e7f5075 Fixed build 2014-10-12 02:52:19 +02:00
Christophe Riccio
893de94bb1 Fixed build 2014-10-12 02:51:34 +02:00
Christophe Riccio
e6a890454d Fixed lack of consistency of quat and dualquat constructors 2014-10-12 02:32:32 +02:00
Christophe Riccio
284ba46dae Fixed spaces 2014-10-12 02:32:04 +02:00
Christophe Riccio
d06db1133d Updated GTX_associated_min_max with vec1 support 2014-10-12 02:05:27 +02:00
Christophe Riccio
c2d542562e Fixed GLM_FORCE_SIZE_FUNC support overlook #245. Added uninitiallized constructor to quaternion. Fixed lack of conscistency or quaternion constructors with other types. Various uninitilized constructor optimizations 2014-10-12 01:24:28 +02:00
Christophe Riccio
75939a7960 Fixed GTX_string_cast to support for integer types #249 2014-10-10 01:21:04 +02:00
Christophe Riccio
3556f4ad85 Clean up 2014-10-06 23:06:34 +02:00
Christophe Riccio
291708ce07 Added GLM_FORCE_SIZE_FUNC to replace .length() by .size() #245 2014-10-05 22:12:25 +02:00
Christophe Riccio
f9484a6e9f - Moved template types from 'detail' to 'glm' namespace #239, #244 2014-10-05 19:37:07 +02:00
Christophe Riccio
38399875f4 Merge pull request #238 from SiliconKiwi/patch-1
Closest point algorithm can be easily extended to support 2d points #238
2014-10-05 16:09:10 +02:00
Christophe Riccio
0684a5e2c6 GTX_range is only available for C++11 compilers #240 2014-10-05 14:42:17 +02:00
Christophe Riccio
7ab7d4beb8 Merge pull request #240 from Jaxan/range
Range support #240
2014-10-05 14:24:19 +02:00
Christophe Riccio
a00fc3fdf4 Enable only GLM_GTX_scalar_multiplication for C++11 compiler #242 2014-10-05 13:26:02 +02:00
Joshua Moerman
62ac07815c Adds scalar multiplication for all types 2014-09-22 10:03:18 +02:00
Joshua Moerman
77c704e210 Adds range support 2014-09-19 16:27:23 +02:00
Joshua Moerman
72a6f35a8e Fixes typo 2014-09-19 15:08:26 +02:00
SiliconKiwi
b5409fb728 Update closest_point.inl 2014-09-16 09:11:34 +12:00
SiliconKiwi
ad85092433 Update closest_point.hpp
Algorithm works fine with 2d points as well...
2014-09-16 09:09:39 +12:00
Christophe Riccio
ec513f4466 Added GTX_common with isdenomal #223 2014-09-07 20:53:35 +02:00
Christophe Riccio
cccf2af0a2 Added vec3 slerp (#237) 2014-09-07 20:06:59 +02:00
Christophe Riccio
0d42f4a320 Added vec3 slerp #237 2014-09-07 19:56:24 +02:00
Christophe Riccio
90acd7236d Merge branch '0.9.5' 2014-08-31 22:28:21 -04:00
Christophe Riccio
a614e5da63 Merge branch '0.9.5' of https://github.com/g-truc/glm into 0.9.5 2014-08-31 22:18:39 -04:00
Christophe Riccio
eabeb0471b Merge branch '0.9.6' 2014-08-31 18:37:14 -04:00
Christophe Riccio
67c62d8b1c Merge branch '0.9.6' of https://github.com/g-truc/glm into 0.9.6 2014-08-31 18:12:53 -04:00
Christophe Riccio
3b7aadc2e3 Added initial commit for GLM_GTX_matrix_decompose #227 2014-08-31 18:12:38 -04:00
Christophe Riccio
96ef6ae9ba Fixed infinite loop in isfinite function with GCC #221 2014-08-04 01:00:49 +02:00
Christophe Riccio
2b747cbbad Removed last references to GLM_FORCE_RADIANS 2014-08-04 00:10:12 +02:00
Christophe Riccio
cff845c2b4 Use pragma once 2014-07-14 01:48:27 +02:00
Christophe Riccio
7659e901c9 Fixed merge with 0.9.5 2014-06-28 21:26:24 +02:00
Christophe Riccio
d84fa89cb8 Fixed missing value_type for dual quaternion, Fixed return type of dual quaternion length 2014-06-28 21:08:53 +02:00
Christophe Riccio
24cd06552c Fixed GLM_GTX_io coding style 2014-06-21 16:23:06 +02:00
Christophe Riccio
694416701a Replaced C casts by C++ casts 2014-06-21 15:42:10 +02:00
Christophe Riccio
9b6eecc739 Fixed corner cases in exp and log functions for quaternions #199 2014-06-21 15:38:49 +02:00
Christophe Riccio
ae026e64d3 Merge 0.9.5 2014-06-20 20:10:12 +02:00
Christophe Riccio
7fe8a1944c Fixed fastDistance ambiguity #215 2014-06-20 01:09:50 +02:00
Christophe Riccio
c440b9515a Merge io for GLM types #144 2014-06-15 22:52:23 +02:00
Christophe Riccio
ea45a7b966 Fixed orientate3 function #207 2014-06-11 22:47:37 +02:00
Christophe Riccio
842cea8747 Merge 0.9.5 2014-05-04 21:07:05 +02:00
Christophe Riccio
a2b70690c1 Added test gor issue #199 2014-05-04 17:34:34 +02:00
Christophe Riccio
d77bfa1a70 Fixed GTX_color_space - saturation #195 2014-05-04 17:20:40 +02:00
jan p springer
37e5868200 fixed: warning wrt. strict aliasing on gcc 4.8.2/clang3.3 2014-04-14 00:13:20 +01:00
Christophe Riccio
10778448ef Fixed merge 2014-04-02 01:31:36 +02:00
Christophe Riccio
a5d2a63ef3 - Added workaround for a CUDA compiler bug (#186, #185) 2014-04-01 01:20:03 +02:00
Christophe Riccio
e33136538d - Fixed eulerAngle*** not consistent for right-handed coordinate system (#173) 2014-03-31 23:50:15 +02:00
David Reid
04d9fa2d45 Fix simd_quat build. 2014-03-21 18:49:27 +10:00
Christophe Riccio
00e860eeee Fixed missing bitfieldInterleave definisions 2014-03-16 11:53:58 +01:00
Christophe Riccio
693c1ddbc8 Merge 0.9.5 branch 2014-03-16 02:59:57 +01:00
Christophe Riccio
899f388921 Fixed CUDA issues (#169, #168, #183, #182) 2014-03-16 02:39:36 +01:00
Christophe Riccio
db09ecfc41 Fixed bitfieldInterleave for 4 components #175 2014-03-15 22:24:43 +01:00
Christophe Riccio
ea87e50c59 Merge branch '0.9.5' into 0.9.6 2014-03-15 21:45:47 +01:00
Christophe Riccio
eaf3cf3056 Added missing GLM_FUNC_DECL 2014-03-15 21:45:28 +01:00
Christophe Riccio
ce431012c9 Fix merge 2014-02-25 21:00:25 +01:00
Miguel Ángel Pérez Martínez
7cf0e87526 Added trigonometric.hpp dep to matrix_transform_2d.inl 2014-02-20 21:58:11 -03:00
Miguel Ángel Pérez Martínez
1644912f7d Added GTX_matrix_transform_2d 2014-02-20 21:51:33 -03:00
Christophe Riccio
43691702e1 Fixed GTX_raw_data code dependency 2014-02-19 02:09:09 +01:00
Christophe Riccio
2b17a90859 Fixed declaration and definition mismatch 2014-02-08 20:49:34 +01:00
Christophe Riccio
98a0d9e00e Merge pull request #163 from patzy/0.9.5
Fix dot product clamp range for vector angle functions. (#163)
2014-02-08 13:45:22 +01:00
Christophe Riccio
a310855d23 Fixed undefined reference to fastInverseSqrt (#161) 2014-02-08 13:34:40 +01:00
Morgan Veyret
32e57ce8ff Fix dot product clamp range for vector angle functions. 2014-02-01 21:05:44 +01:00
Christophe Riccio
66efbcc597 Merge branch '0.9.5' into 0.9.6 2014-01-14 09:27:28 +01:00
Christophe Riccio
dd272c52ee Fixed non power of two matrix products 2014-01-13 23:41:11 +01:00
Christophe Riccio
8a5603342c Merge 0.9.5 2014-01-11 23:49:08 +01:00
Tom Cumming
14a7c56abd Ray plane intersection function 2014-01-07 10:54:00 +00:00
Christophe Riccio
ccb25c84c7 Update copyright year 2014-01-04 22:32:28 +01:00
Christophe Riccio
bd8836e53b Merge branch '0.9.5' into 0.9.6 2014-01-04 22:29:45 +01:00
Christophe Riccio
6f096fbb31 Fixed vector and matrix queries 2014-01-04 14:57:59 +01:00