Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/recp/cglm
📽 Highly Optimized 2D / 3D Graphics Math (glm) for C
https://github.com/recp/cglm
* because `acosf()` may return NaN if cosine/dot is out of range
ef6134263e852363d8f412d55f5cd63c88caad48 authored about 6 years ago9af61d2101a471f958f4a3f5f56a2a0e1caf82c5 authored about 6 years ago
* negate is better and common name, flipsign is deprecated now.
463099350ac160f70e87ad5e10eba7fc2c35879b authored about 6 years agofix versor alignment
89f64f079477b1af15f47e6b96db52c767acb057 authored about 6 years agod794f17e513998bf778b79ee05a79465172fe27e authored about 6 years ago
a7cdbcec2b08d806ef4c72017c6ac017d88bb415 authored about 6 years ago
20a23123515332e8e2b7b9152c5e6e5e0e291a4b authored about 6 years ago
avx: replace binary constants (resolve https://github.com/recp/cglm/issues/62) with hex and fix ...
08479f38ceb2b9cefeefdabf87959f4f89e69527 authored over 6 years ago* use glm_mat4_mul_avx here. because it seems there is no big difference for now.
dadae4b773b01e1713b01f0c16180e2302568d49 authored over 6 years ago20360f22965e80176dbb6931e727eb6f41fa9796 authored over 6 years ago
aa2b0f26317f681c5038d36ae854ff2159085aaa authored over 6 years ago
Replace non-standard M_PI* constants
280ac72fd89467508154a67614484fd290f291b3 authored over 6 years ago7405d5e1d0be0305b21b0a31515f2d72fd6aca97 authored over 6 years ago
These are all missing from standard C, so we might as well define em.
See https://github.com/re...
eefafefbae6a95ac1397dc0e9ecb3cde865b1f46 authored over 6 years agob9021978cb1628de4f5b15d4ff4dc08482e2f8df authored over 6 years ago
GLM_PI* is now used for the double versions, GLM_PI*f for the float
versions. The CGLM_ prefixed...
See https://github.com/recp/cglm/pull/61#issuecomment-422955122
59ee8c1fd2a402530231ea6984091804446d1faf authored over 6 years ago
As in the previous commit, because it's non-standard and depending on
your settings it can fail ...
M_PI, M_PI_2 and M_PI_4 aren't part of the C standard. If you put your
gcc into strict standards...
this helpers makes all array elements identity
98da3daf82fc37b0c67d2dff1c490610d6a313f0 authored over 6 years agoFix alignment issue when using AVX
2e1790ccf95e99c1b58fd3d8bf8779847022b943 authored over 6 years agocc5f533fc924d09771a9c315e03bf73dcea2c462 authored over 6 years ago
2d63d7e0cd210edee125c686d84c998609779f4a authored over 6 years ago
373849992761ff09090a93683e40bdfdbee03059 authored over 6 years ago
1d527dc2f00c15ef323939f25dabb82235ad4584 authored over 6 years ago
43c4d05d4a57e0abbec5a9d1b26638e94375d876 authored over 6 years ago
c5f5032fcc5b09c89612fcea2205d659328ac95d authored over 6 years ago
* two value may be same, in this case now returns 1.
* to must be >= from and current <= to && c...
because we could use min/max for intergers too. it may not guarantee that MIN and MAX macros wil...
c216c0cb7ecbcefe6108c72f45338bd84b348e2e authored over 6 years agoeb8e0df6dfcd6076f6e7472ee5bb3fdb865191cb authored over 6 years ago
Animation Utils
1775bf7458fcc6fb1286c828ed1455aa638788ad authored over 6 years ago3adeac06f88a2cf3c1465c4ddb074ca59f78fc8a authored over 6 years ago
669777eb37eaffd6079ba06893b87ccf1a352183 authored over 6 years ago
02f6c67393355b6e76d944e241da27771ccc6341 authored over 6 years ago
564324f5d21e5d6a93469df503f28061b1bb73bd authored over 6 years ago
aabb and sphere intersect functions
93e6c3c102ce8b1ae22f4aa268b10a16549c10d6 authored over 6 years ago857265b89230fb8a50e23684fc9618e629b2c15a authored over 6 years ago
fc14cedf89a1ce45b47fed6cb772d6e6fe9e2b86 authored over 6 years ago
7a8017835703838bca6de519805245dea48ca3a8 authored over 6 years ago
720b617ee06ff544695ef4241864b4045e4bb57f authored over 6 years ago
3dc9070909208a9214b36766f3772a9de526cef3 authored over 6 years ago
6b2b4b4f120dec6427ab42835a6101b8ec0ceaa4 authored over 6 years ago
c8fc460ba10e440f4b5a56e1e5931821499d6a4c authored over 6 years ago
* AABB vs AABB
* AABB vs Point
* AABB vs Sphere
* AABB contains AABB
af812e86ebc06aca69d27a058bcd6e5d4ec52923 authored over 6 years ago
059bdfdd4b6ea58f09372cfd170518e50575ca3b authored over 6 years ago
ef0653640f45266f549aee3ec34fe2892880ca02 authored over 6 years ago
e5d61b34337ac783eae1ba35f52cf616820e6a6b authored over 6 years ago
73c073cf324462e088401ba7737fa817cc90a147 authored over 6 years ago
1362bef50ff87ff520b55d1fe5503298b2f9c3ed authored over 6 years ago
7d783eeace8d890100be819d06d3cc8762ed9a4b authored over 6 years ago
e12e79b1a5f27906146057c7bfd203fb022fe019 authored over 6 years ago
6cd3d52dc568bea984b6c7773416c1200df8ef8d authored over 6 years ago
* it is just wrapper of vec_center but it saves to access min and max values of AABB
fb2cac981657910cd564c914228acfb2158365fc authored over 6 years ago4e63325f550267ba1e43d49e3808447e53da3e8d authored over 6 years ago
96c3e604ff366b97ce907815ff2f52e269c40113 authored over 6 years ago
simd: optional shuffle configuration to save move instructions
077e304fc5cf8ae4d1884881c097aa7124686968 authored over 6 years ago599524dacf973a96a0e7d6ae7159ad10aa8457a4 authored over 6 years ago
da5ad698631208e5615de476d149a5f186fcd128 authored over 6 years ago
9fc2ead8ef9668e7e0188a8b18244eae3e1487a2 authored over 6 years ago
simd: Make alignment OPTIONAL
48d33c16cb15d55a9286bd51a53d966ba75f9dc3 authored over 6 years ago464bd917d094d79b886248596f75fdae9a545865 authored over 6 years ago
c6d07bb6eb036742c25bdad9b8ccb6d74871cb64 authored over 6 years ago
94b286f1f92f42cfea8fea88f8ad6a8de793584b authored over 6 years ago
f774925e8a3182c3699f21b70948ba5c8b6d4ce5 authored over 6 years ago
0e49e951618544ec802f27314c7652264f8c3751 authored over 6 years ago
b27735780057fabc5375d2da3b78104deed972d7 authored over 6 years ago
* bring alignment back for visual studio 2017
835cec2ccb0aaf872c5b10c24feecbd5ae099023 authored over 6 years ago* now glmm_ is used as global simd namescape
5dbbd0826d1cd18f6722d193447d2b720aea9bdd authored over 6 years ago56f0bb0928e127ed993ec6e46aef9ad7d8cfd819 authored over 6 years ago
568001d26a5b047a2e1ac438497e8a778048fb8f authored over 6 years ago
252bf925fc4ecd9cd939992f3651df15fc84e0c3 authored over 6 years ago
0f339c5c03f73b6751ffeb00e6e9f4a8620bae42 authored over 6 years ago
a9d56f2daeb9781fe279880997456872cc6697e2 authored almost 7 years ago
replace _WIN32 with _MSC_VER
dd60496ffc6ab104f3a8d17b422922b422ce7187 authored almost 7 years ago7c0e9e99c67ddc63ff95d10c8c2885d1105c2bf0 authored almost 7 years ago
064209c917be86d5ffda7a871a2447af7ad0411a authored almost 7 years ago
94d6036c388f764cf2697095b088ac076bef65e1 authored almost 7 years ago
6c01eff056af1f54b63e12b46b0a78f3ce7502a4 authored almost 7 years ago
ada69a7c43a6ea405e871cf4f6eefe3522bf39b2 authored almost 7 years ago
cef97fca3ec7a7e89066ec0df3e3226a13f4713a authored almost 7 years ago
498a33fac5f6cce134720fd5fbcad18206c8d285 authored almost 7 years ago
3c7a729729097325e3824ce48739c13879a5efaf authored almost 7 years ago
a6a37995e9377fb01efc6a50fb71f2fbe57bac44 authored almost 7 years ago
6202179c23b04125c0084c6446ff3d05fe5835fe authored almost 7 years ago
22b699174c9a8bb6f2483f8a678b09146ba6ce5e authored almost 7 years ago
affine transform update
016c0a71a650248175d09494f33a722230e2a17d authored almost 7 years agoe28cf1d3f6ce21d4ae0bd5ec9fd0481f0e2bd9b6 authored almost 7 years ago
* this should be faster than mat4_mul
63966ee5c0c40b585fb5548ed5b7c4a04d270f4a authored almost 7 years agoa723ecdb7ec862b38dce7975563631b1162f7cb9 authored almost 7 years ago
065f93ab3cd0e202974377cae8d019d178d5502a authored almost 7 years ago
4dbcd28fdba604ecc4d4432f15b862a709cdfe17 authored almost 7 years ago
be0e3fc9f2c5b50d4370522d54051cbf79a047ca authored almost 7 years ago
d648f5772def2fa28ec39650982e9768db16fa81 authored almost 7 years ago
f163fcd043d3cf99fd44724c53df5966a88634f1 authored almost 7 years ago
27ab6a7dd0c268df32f0d7b57aa6eca5c7d6d970 authored almost 7 years ago
33e951fe2e738cf8a6c8185c181a285ac6964102 authored almost 7 years ago
c63c6c90aceb7e8ead996775dc9c83f699f60514 authored almost 7 years ago
a2792178dba99301e4524a30be4338673930d12c authored almost 7 years ago
cefd5fb53d50e0b3089ab075fc220c8c3ae630a1 authored almost 7 years ago