Commit Graph

404 Commits

Author SHA1 Message Date
Recep Aslantas
93a08fce17 quat: axis angle of quaternion 2018-04-09 23:12:44 +03:00
Recep Aslantas
cc1d3b53ea quat: implement add, sub, real and imag helpers 2018-04-09 22:32:55 +03:00
Recep Aslantas
b21df8fc37 inverse of quaternion 2018-04-09 22:26:23 +03:00
Recep Aslantas
76e9f74020 conjugate of quaternion 2018-04-09 21:54:53 +03:00
Recep Aslantas
d79e58486d update credits file 2018-04-09 21:54:35 +03:00
Recep Aslantas
3dc93c56e8 convert quaterinon to xyzw order (part 1) 2018-04-09 18:49:12 +03:00
Recep Aslantas
7615f785ac improve quaternion to matrix 2018-04-09 00:53:14 +03:00
Recep Aslantas
f0daaca58b improve matrix to quaternion 2018-04-09 00:46:00 +03:00
Recep Aslantas
381b2fdcc0 fix vec4_norm2, use dot for vec3_norm2 2018-04-09 00:01:56 +03:00
Recep Aslantas
e4e0fa623c sse2 version of vec4 dot product
* use this for normalizing vector
2018-04-08 18:27:54 +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
81bda7439d vector square root 2018-04-08 12:30:15 +03:00
Recep Aslantas
b27603c268 normalize quaternion before converting to matrix
* because it must be unit quaternion and didn't specified this in docs.

* we must provide alternative func for unit quat
2018-04-08 00:09:40 +03:00
Recep Aslantas
12c5307447 vec3 and vec4 sign helper 2018-04-07 21:53:22 +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
619ecdc5a4 quat: improve normalize 2018-04-07 13:46:46 +03:00
Recep Aslantas
9b8748acc4 quat: quaternion to mat3 2018-04-07 13:27:40 +03:00
Recep Aslantas
ae06c51746 improve glm_mat4_mulN for non-DEBUG environment 2018-04-07 13:22:44 +03:00
Recep Aslantas
11430559b4 fix isnan and isinf 2018-04-07 08:28:37 +03:00
Recep Aslantas
58f0043417 vector utils: isnan and isinf
* a vector which has least one NaN or INF member, is assumed not valid vector.
2018-04-06 22:57:24 +03:00
Recep Aslantas
967fb1afad Update README.md 2018-04-03 17:32:10 +03:00
Recep Aslantas
7411ac36c1 update docs for euler angles 2018-04-03 17:05:45 +03:00
Recep Aslantas
238609f2c0 Merge pull request #31 from recp/proj
add project / unproject functions
2018-04-03 16:51:55 +03:00
Recep Aslantas
ea0a10ade9 suppress warnings 2018-04-03 16:47:59 +03:00
Recep Aslantas
429fdfd5c5 update build scripts 2018-04-03 16:47:51 +03:00
Recep Aslantas
024412f00e add docs for project/unproject 2018-04-03 16:41:13 +03:00
Recep Aslantas
e8615ea14c fix tests list 2018-04-03 12:35:30 +03:00
Recep Aslantas
be81d73895 Update test_main.c 2018-04-03 12:32:21 +03:00
Recep Aslantas
b16f0ded85 Merge branch 'master' into proj 2018-04-03 12:30:03 +03:00
Recep Aslantas
63acfd681e fix unproject, add tests to project/unproject 2018-04-03 12:27:20 +03:00
Recep Aslantas
eb527e39b4 optimize project 2018-04-03 11:25:33 +03:00
Recep Aslantas
9f389ab8ec project function 2018-04-03 11:09:13 +03:00
Recep Aslantas
3399595dc2 add vec2 type 2018-04-03 10:46:46 +03:00
Recep Aslantas
2513d46102 Merge pull request #41 from winduptoy/patch-1
Fix small typo.
2018-04-02 20:26:52 +03:00
Matt Reyer
c298f4a4d7 Fix small typo. 2018-04-02 11:33:58 -04:00
Recep Aslantas
84cdbd5072 Merge pull request #40 from recp/aabb-ext
Axis-Aligned Bounding Box (AABB) Extensions
2018-04-02 16:40:23 +03:00
Recep Aslantas
74f9865884 add docs for new aabb functions 2018-04-02 16:36:55 +03:00
Recep Aslantas
dbd1e334ea aabb box size and radius 2018-04-02 16:26:14 +03:00
Recep Aslantas
acda316c12 get sign of float helper as -1, +1 and 0
* add clarification for zero input
2018-04-02 16:18:50 +03:00
Recep Aslantas
86efe64b8e helper for check aabb is valid or not 2018-04-02 12:35:22 +03:00
Recep Aslantas
b0991342a6 aabb printer function 2018-04-02 12:08:08 +03:00
Recep Aslantas
984916d520 invalidate axis-aligned boundng box util 2018-04-02 11:50:53 +03:00
Recep Aslantas
54c44ff224 Merge pull request #39 from opencollective/opencollective
Activating Open Collective
2018-04-01 22:26:33 +03:00
Jess
db4761b437 Added backers and sponsors on the README 2018-04-01 18:12:46 +09:00
Recep Aslantas
ca504f7058 now working on v0.3.6 2018-03-29 00:12:16 +03:00
Recep Aslantas
5a7b9caf16 Update README.md v0.3.5 2018-03-29 00:02:37 +03:00
Recep Aslantas
43b3df992d Merge pull request #37 from recp/euler
fix euler angles (extrinsic -> intrinsic)
2018-03-28 23:58:15 +03:00
Recep Aslantas
26110f83d1 euler: fix thetaY in extracting angles 2018-03-27 12:35:19 +03:00
Recep Aslantas
d1f3feeb6e test: add tests for euler XYZ 2018-03-27 12:14:46 +03:00