cglm
cglm copied to clipboard
📽 Highly Optimized 2D / 3D Graphics Math (glm) for C
Big fan of cglm. Want to try out making a project with the struct API. If you precompile cglm, you need to use call.h and the calls become glmc_XXX. But...
- [WIP] More SIMD optimizations - Matrix invert - Non-Square matrices - Transforms - AABB - Frustum - simd for int types - ... - [x] Fix compiling on MSVC...
Non-square matrix * column vector multiplication implemented as row vector * matrix multiplication
The matrix-vector multiplication functions for non-square types (mat4x3, mat3x4, mat2x4, etc) incorrectly take the dot product of each column of the matrix with the vector instead of the row, which...
Hello, Are there types like `dvec3` that use doubles instead of floats for increased precision? I know that [https://github.com/g-truc/glm](glm) does that, but I'm wondering if cglm also has something similar....
There are currently some collision detection functions split between box.h, aabb2d.h, ray.h, sphere.h. This issue is about discussing how to improve the API. I'm using _TYPE_vs_TYPE naming here because I...
Tried to make a bernstein polynomial for it but since each slerp depends on the angle, I don't think its gonna work. So I used Decasteljau. Interested in hearing how...
Hi, I think it would be nice to have a build.zig file to support C/C++ projects that are built using Zig. I have created a simple one that is by...
The glm_vec3_isnan, glm_vec3_isinf, glm_vec4_isnan and glm_vec4_isinf sunctions cause compiler warnings with recent clang versions and the -ffast-math compiler flag: "use of NaN is undefined behavior due to the currently enabled...
The comment for glm_vec3_isnan() "@brief check if all items are NaN (not a number)" is wrong. The one for the same function in vec4-ext.h is better: "@brief check if one...
The C standard (at least C99) states that a source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash...