cglm
cglm copied to clipboard
📽 Highly Optimized 2D / 3D Graphics Math (glm) for C
At the moment, `cglm` can be built with the following build systems: * CMake * Meson * Swift package manager * Autotools * MSBuild It is not realistic to expect...
I think we should replace `int` with `int32` in **ivec[ 2 | 3 | 4 ]** typedefs in order to make the vector size clear. Because in `C` **int** must...
Hello there, I am currently using cglm in my game engine and was wondering if there is an implementation of adjugate in cglm? here how the function looks like from...
A static analyzer used on code indirectly including affine.h (but not using glm_inv_tr) gives me this warning: cglm/simd/neon/affine.h:95:8: style: Variable 'r3' is assigned a value that is never used. [unreadVariable]...
glm_sign(), as ((val >> 31) - (-val >> 31)) fails if val is INT_MIN. In fact, it has undefinded behaviour (shifting signed 32-bit value by 31 bits). Using shifts, or...
In #83, I see one of the comments > Also I would recommend against caring about or supporting C++. Realisitically no one would use this library over GLM if you're...
Excerpt from #206 discussion: > Having APIs not perform normalization means the application code can perform it if needed; if application already has a unit quaternion, it can simply feed...
Clang has a WIP matrix implementation: https://clang.llvm.org/docs/LanguageExtensions.html#matrix-types And several functional vector implementations: https://clang.llvm.org/docs/LanguageExtensions.html#vectors-and-extended-vectors (The vector extension I personally have had the best experience with being `ext_vector_type`, which also seems to...
When using the clang flag `-Wdouble-promotion` and including ``, a maelstrom of implicit float-to-double conversion errors arise. Here is a small snippet of the 23 warnings I got: ``` /usr/local/include/cglm/vec2-ext.h:65:13:...