Bruce Mitchener
182c28faf8
Allow passing const float* to make functions.
2024-03-18 19:49:50 +07:00
Recep Aslantas
b9e62b6fe5
use NDEBUG to check DEBUG mode
2024-03-01 12:00:01 +03:00
Bruce Mitchener
e4419c4f18
Fix typos.
2024-02-08 15:12:30 +07:00
Vincent Davis Jr
e17f115f91
mat4: add new function glm_mat4_make
...
Function takes in a 16 element float array
and converts it into a mat4 matrix.
Signed-off-by: Vincent Davis Jr <vince@underview.tech >
2023-05-14 20:10:48 -05:00
myfreeer
d7c0edcbd9
simd128: minor lint
2023-04-08 13:40:46 +08:00
myfreeer
3a9e4df393
simd128: handle both sse2 and simd128 enabled by Emscripten
...
https://github.com/recp/cglm/pull/286#issuecomment-1492985403
2023-04-02 12:39:20 +08:00
myfreeer
84c521c203
simd128: enable in mat4
2023-03-26 19:34:07 +08:00
Ransel117
7fba424f64
Fixed glm_mat4_mulv3
...
Fixed it so that the function has all of it's parameters in the comments
2023-02-05 20:57:36 +01:00
Recep Aslantas
ba634d6c83
simd: optimize glm_mat4_zero() with simd
2021-04-30 04:04:27 +03:00
Recep Aslantas
afac887850
arm, neon: implement mat4 inv with neon
2021-04-24 17:54:01 +03:00
Recep Aslantas
a111693b6b
arm, neon: implement mat4 determinant with neon
2021-04-24 15:45:36 +03:00
Recep Aslantas
7c81482248
avx: implement scale matrix using AVX
2021-04-19 00:11:43 +03:00
Recep Aslantas
e34601f578
arm neon: multiply mat4 with vec4
2020-08-29 11:51:07 +03:00
Recep Aslantas
fa01a3077b
neon: support transpose mat4 with neon
2020-08-29 11:33:13 +03:00
Recep Aslantas
54f805a62d
neon: move neon-scale to simd header
2020-08-29 11:32:44 +03:00
Recep Aslantas
39dc61af54
tests: add a few test for mat4
2019-09-15 19:33:41 +03:00
Recep Aslantas
bb8ff25752
Revert "mark readonly parameters as const"
2019-04-30 08:19:07 +03:00
Recep Aslantas
6ed275734b
mark readonly parameters as const
2019-04-28 12:15:43 +03:00
Recep Aslantas
b4efcefe7f
drop glm__memcpy, glm__memset and glm__memzero
...
* implement mat3_zero and mat4_zero functions
* copy matrix items manually in ucopy functions
2019-02-13 10:14:53 +03:00
Recep Aslantas
1e121a4855
mat4: fix rmc multiplication
2019-01-29 22:11:04 +03:00
Recep Aslantas
32ddf49756
mat4: helper for row * matrix * column
2019-01-26 18:05:05 +03:00
Recep Aslantas
be6aa9a89a
simd: optimize some mat4 operations with neon
2019-01-22 09:39:57 +03:00
Recep Aslantas
21834b4ffb
matrix: trace of matrix
2018-12-06 18:17:02 +03:00
Recep Aslantas
b4bf8f3537
vec: rename glm_vec_ to glm_vec3_ (continue)
...
* add missing functions to vec4
* update docs
2018-11-29 09:07:48 +03:00
Recep Aslantas
98da3daf82
identiy helper for arrays (matrix/quaternion)
...
this helpers makes all array elements identity
2018-09-12 12:44:11 +03:00
Jonathan Platzer
cc5f533fc9
Add macro for automatic alignment of matrices
2018-07-19 10:14:30 +02:00
Jonathan Platzer
2d63d7e0cd
Fix alignment issue when using AVX
2018-07-18 12:03:38 +02:00
Recep Aslantas
059bdfdd4b
update docs
2018-05-27 11:54:05 +03:00
Recep Aslantas
e5d61b3433
update mat4_mulv3 api to include translation
2018-05-27 11:46:27 +03:00
Recep Aslantas
7d783eeace
align local variables on stack
2018-05-23 23:04:06 +03:00
Recep Aslantas
56f0bb0928
simd, avx: make alignment optional for load/store operations
2018-05-08 15:35:17 +03:00
Recep Aslantas
568001d26a
simd, sse2: make alignment optional for store operations
2018-05-08 15:31:09 +03:00
Recep Aslantas
252bf925fc
simd, sse2: make alignment optional for load operations
2018-05-08 15:25:23 +03:00
Recep Aslantas
0f339c5c03
fix header dependencies
2018-05-07 21:12:29 +03:00
Recep Aslantas
498a33fac5
fix public header's includes
2018-04-21 22:36:25 +03:00
Recep Aslantas
fdea13507b
replace mat4_mulq with glm_quat_rotate
...
* glm_quat_rotate is better name to rotate transform matrix using quaternion.
* we may use mat4_mulq in the future for another purpose e.g. left multiplication quat with matrix
2018-04-11 10:49:53 +03:00
Recep Aslantas
3dc93c56e8
convert quaterinon to xyzw order (part 1)
2018-04-09 18:49:12 +03:00
Recep Aslantas
f0daaca58b
improve matrix to quaternion
2018-04-09 00:46:00 +03:00
Recep Aslantas
932f638d5a
optimize mat4 to quaternion
...
* add SSE2 version and optimize scalar version
2018-04-08 12:31:32 +03:00
Recep Aslantas
257c57d41f
mat4 to quaternion
2018-04-07 19:46:46 +03:00
Recep Aslantas
f5140ea005
quat: mat4_mul_quat helper
...
* the quaternion is used as right matrix
2018-04-07 13:47:20 +03:00
Recep Aslantas
ae06c51746
improve glm_mat4_mulN for non-DEBUG environment
2018-04-07 13:22:44 +03:00
Recep Aslantas
c1c659489a
surround macro values with parentheses
2018-02-18 11:16:03 +03:00
Recep Aslantas
4052943a0d
matrix: make accurate inv version default
...
* now the glm_mat4_inv_precise is deault, because I don't think all people are aware of this func
* the old behavior (fast) replaced with new func: glm_mat4_inv_fast
if fast version is desired then glm_mat4_inv_fast must be used.
2017-12-17 15:49:00 +03:00
Recep Aslantas
9d61668e04
re-organise files, remove cglm prefix from file to make them more clean
2017-07-11 18:05:10 +03:00