cglm
cglm copied to clipboard
📽 Highly Optimized 2D / 3D Graphics Math (glm) for C
I know it's a pain to implement but could you add support for this particular set of gcc options please? For variables that are not declared at the top of...
I would (very much) like to use CGLM with a non-C99 Win32 app [ANTz](../../../openantz/antz). Commonly used (older) versions of MSVC do not support 'inline' C99 methods and most of my...
I am having problems integrating the clgm source code into a larger cmake project on Windows. cl.exe complains about warning & optimizations levels getting overridden by the clgm CMakeLists.txt. This...
include/cglm/types.h contains the following block of code: `#ifdef __GNUC__` `#define CGLM_ASSUME_ALIGNED(expr, alignment) __builtin_assume_aligned((expr), (alignment))` `#else` `#define CGLM_ASSUME_ALIGNED(expr, alignment) (expr)` `#endif` but __builtin_assume_aligned appeared only in gcc 4.7. With earlier versions...
Theses functions might be good additions to `util.h` * [Smootherstep][2] (`6x⁵ - 15x⁴ + 10x³`) * [Fast square root][2]; [related discussion in GameDev.net][3] * [Fast inverse square root][4] [1]: https://en.wikipedia.org/wiki/Smoothstep#Variations...
I created CocoaPods spec, so now Xcode users can import **cglm** to their project via CocoaPods. ```bash target 'MyApp' do # use_frameworks! pod 'cglm', '~> 0.4' # or latest version...
Currently the only way to build, say, a vec3s is manually: ``` vec3s value = {{ 1.0f, 0.0f, 0.5f }}; value = (vec3s) {{ 0.0f, 0.5f, 2.5f }}; ``` This...
In `//include/cglm/quat.h`, we've `glm_quatv` which calculates a new quaternion from axis and angle; it does ``` c c = cosf(a); s = sinf(a); ``` This can be optimized by using...
* https://en.wikipedia.org/wiki/Bivector * https://en.wikipedia.org/wiki/Multivector * https://en.wikipedia.org/wiki/Bivector#Projective_geometry * https://www.euclideanspace.com/maths/algebra/clifford/d4/functions/inverse/index.htm * https://www.euclideanspace.com/maths/algebra/clifford/index.htm * https://www.euclideanspace.com/maths/algebra/clifford/geometry/transforms/motors/index.htm --- - https://marctenbosch.com/quaternions/ (Let's remove Quaternions from every 3D Engine) (An Interactive Introduction to Rotors from Geometric Algebra)...
Since struct api is inline, we can provide an option to omit `glms_` name space? ```Swift /* 1. struct api */ /* existing api; omit_ns is not defined */ return...