John McFarlane
506a487d24
parameterize number of dimensions of vector in tvec<D, T, P>
...
- specializes for 1, 2, 3 and 4-dimensional vector types
which are then aliased as tvec1, tvec2, tvec3 and tvec4
- requires C++11 aliases; breaks compatability with C++03
- tested on:
- clang-3.5.2, clang-3.8.0
- gcc 4.8.5, gcc 5.4.1, gcc 6.2.0
TODO:
- still uses template template parameters - most can probably be removed
- some definitions might now be de-duplicated
ago%!(EXTRA string=9 years)
Christophe Riccio
2e9f580615
vector/matrix component length() static #565
ago%!(EXTRA string=9 years)
Patrik Huber
3b4856cf58
Convert integers to type T in quaternion mat3_cast()
...
This fixes issues when the type T is not explicitly convertible to T, and for example only has an operator* defined that takes two Ts but not a T and an int.
All the other functions in that file already use this syntax, so the missing ones here are most likely an oversight.
ago%!(EXTRA string=9 years)
Patrik Huber
d08618c073
Convert integers to type T in quaternion mat3_cast()
...
This fixes issues when the type T is not explicitly convertible to T, and for example only has an operator* defined that takes two Ts but not a T and an int.
All the other functions in that file already use this syntax, so the missing ones here are most likely an oversight.
ago%!(EXTRA string=9 years)
Christophe Riccio
ad1ae45066
More use of GLM_HAS_ALIGNED_TYPE
ago%!(EXTRA string=9 years)
Christophe Riccio
dc89797275
- Added quaternion version of isnan and isinf #521
ago%!(EXTRA string=9 years)
Christophe Riccio
166099e82d
Added generic quaternion SIMD optimizations
ago%!(EXTRA string=9 years)
Christophe Riccio
41984e42ab
Added GTC_type_aligned with aligned *vec* types
ago%!(EXTRA string=9 years)
Christophe Riccio
316460408a
Simplify and more consistency for files headers
ago%!(EXTRA string=9 years)
Christophe Riccio
6d302792ab
- Added constexpr for *vec*, *mat*, *quat* and *dual_quat* types #493
ago%!(EXTRA string=9 years)
Christophe Riccio
7e86e9bc3c
- Added constexpr for *vec*, *mat*, *quat* and *dual_quat* types #493
ago%!(EXTRA string=9 years)
Christophe Riccio
d52766297d
- Added constexpr for *vec*, *mat*, *quat* and *dual_quat* types #493
ago%!(EXTRA string=9 years)
Christophe Riccio
9a7b802bdc
- Added constexpr for *vec*, *mat*, *quat* and *dual_quat* types #493
ago%!(EXTRA string=9 years)
Christophe Riccio
66b714c418
Finishing up removing GLM_FORCE_SIZE_FUNC define and passing by copy scalars
ago%!(EXTRA string=10 years)
Christophe Riccio
234d7d4ba9
Simplify code removing GLM_FORCE_SIZE_FUNC, GLM_META_PROG_HELPERS, GLM_STATIC_CONST_MEMBERS and 'type' type trait. Added experiments for GTX_type_trait
ago%!(EXTRA string=10 years)
sippeangelo
2d813b587a
This fixes #461
ago%!(EXTRA string=10 years)
Christophe Riccio
1709e9abca
Added unary + operator #435
ago%!(EXTRA string=10 years)
sippeangelo
014a7f8404
This fixes #461
ago%!(EXTRA string=10 years)
Christophe Riccio
32fc69ee11
- Added unary + operator #435
ago%!(EXTRA string=10 years)
Jesse Talavera-Greenberg
5eb7ad5d47
Add IDENTITY constants for quat and simdQuat
...
- Why the hell am I not studying for the test I have tomorrow
ago%!(EXTRA string=10 years)
Jesse Talavera-Greenberg
ef320a2a2f
Simplify the static const definitions for vectors and quaternions
...
- DRY, baby!
ago%!(EXTRA string=10 years)
Jesse Talavera-Greenberg
d1cdb46cfb
Wrap tquat's, simdQuat's and simdVec4's static constants in GLM_STATIC_CONST_MEMBERS
...
- Also, fixed indentation
ago%!(EXTRA string=10 years)
Jesse Talavera-Greenberg
a92ed0cdf5
Add static constants to quat, simdVec4, and simdQuat
...
- No tests, though
ago%!(EXTRA string=10 years)
Christophe Riccio
e0c4a71016
Clean up doxygen and source
ago%!(EXTRA string=10 years)
Christophe Riccio
afa193704c
Fixed interactions with GLM_FORCE_NO_CTOR_INIT and default functions #366
ago%!(EXTRA string=10 years)
Christophe Riccio
a56a40e1f2
Added support of defaulted functions to GLM types, to use them in unions #366
ago%!(EXTRA string=10 years)
Christophe Riccio
7844332816
Fixed memory corruption (undefined behaviour) #303
ago%!(EXTRA string=11 years)
Christophe Riccio
fc8b4404f0
Fixed faceforward build #289
ago%!(EXTRA string=11 years)
Christophe Riccio
2117c53dbf
Fixed conflict between GTX_compatibility and GTC_quaternion #286
ago%!(EXTRA string=11 years)
Christophe Riccio
38d99978ab
Fixed C++11 explicit conversion operators detection #282
ago%!(EXTRA string=11 years)
Christophe Riccio
be0c5da488
size_type and length_type for all types
ago%!(EXTRA string=11 years)
Christophe Riccio
3f48ffefb0
Updated license
ago%!(EXTRA string=11 years)
plasmacel
017e97d554
Update quaternion.inl
ago%!(EXTRA string=11 years)
plasmacel
4581d25ec9
Update quaternion.inl
ago%!(EXTRA string=11 years)
Christophe Riccio
3adf263341
Added GLM_FORCE_EXPLICIT_CTOR to require explicit type conversions #269
ago%!(EXTRA string=11 years)
Christophe Riccio
0b8ca1a5b6
Added a CMake option to execute GLM performance tests. Made quat and dualquat trivially constructible #263
ago%!(EXTRA string=11 years)
Christophe Riccio
790f520488
Clean up coding style
ago%!(EXTRA string=11 years)
Christophe Riccio
f2383340cf
Clean up coding style
ago%!(EXTRA string=11 years)
Christophe Riccio
bcd07b50f3
- Added GLM_FORCE_NO_CTOR_INIT
ago%!(EXTRA string=11 years)
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
ago%!(EXTRA string=11 years)
Christophe Riccio
291708ce07
Added GLM_FORCE_SIZE_FUNC to replace .length() by .size() #245
ago%!(EXTRA string=11 years)
Christophe Riccio
f9484a6e9f
- Moved template types from 'detail' to 'glm' namespace #239 , #244
ago%!(EXTRA string=11 years)
Christophe Riccio
2b747cbbad
Removed last references to GLM_FORCE_RADIANS
ago%!(EXTRA string=11 years)
Christophe Riccio
666475a84c
Fixed VC14 compiler warnings
ago%!(EXTRA string=11 years)
Christophe Riccio
c506b43d49
Quaternion vector rotation error. #209
ago%!(EXTRA string=11 years)
Joel Nises
e610e9446e
fixed bug in quaternion slerp
ago%!(EXTRA string=11 years)
Christophe Riccio
4da58d88d4
Optimized Quaternion vector rotation #205
ago%!(EXTRA string=11 years)
dachziegel
d19766fcbf
added GLM_FUNC_QUALIFIER to be able to use in CUDA
ago%!(EXTRA string=11 years)
Christophe Riccio
31ec3eed97
Clean up initializer list code.
ago%!(EXTRA string=12 years)
Christophe Riccio
6aa34be6ad
Fixed GLM_FORCE_RADIANS with <glm/ext.hpp> build error ( #165 )
ago%!(EXTRA string=12 years)