Recep Aslantas
2f632c6311
Update README.md
v0.5.0
2018-12-02 21:35:50 +03:00
Recep Aslantas
b47d148b81
Update README.md
2018-12-02 21:35:31 +03:00
Recep Aslantas
a5bc2f710e
Merge pull request #68 from recp/vec-update
...
major vector update
2018-12-02 21:24:14 +03:00
Recep Aslantas
6d6954b208
vec: minnadd and maxadd helpers
2018-11-29 10:50:24 +03:00
Recep Aslantas
4e08b7e335
vec: rename parameter names
2018-11-29 09:55:27 +03:00
Recep Aslantas
aee381d869
vec: deprecate glm_vec_inv and glm_vec4_inv
...
* because in the current implementation, `glm_vec3_negate` does same thing. It is duplicate.
2018-11-29 09:23:14 +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
0b8c63a90e
vec: rename glm_vec_ namespace to glm_vec3_
2018-11-28 23:22:30 +03:00
Recep Aslantas
ef6134263e
vec: improve angle between two vector
...
* because `acosf()` may return NaN if cosine/dot is out of range
2018-11-28 14:48:12 +03:00
Recep Aslantas
9af61d2101
vec: use _negate instead of _flipsign and _inv
2018-11-28 10:50:21 +03:00
Recep Aslantas
463099350a
vec: use _negate instead of _flipsign and _inv
...
* negate is better and common name, flipsign is deprecated now.
2018-11-28 10:28:00 +03:00
Recep Aslantas
89f64f0794
Merge pull request #65 from sinisterchipmunk/fix-versor-alignment
...
fix versor alignment
2018-11-17 22:36:12 +03:00
Recep Aslantas
d794f17e51
Merge branch 'master' into fix-versor-alignment
2018-11-17 22:32:48 +03:00
Recep Aslantas
a7cdbcec2b
now working on v0.5.0
2018-11-17 22:31:51 +03:00
Colin MacKenzie IV
20a2312351
fix versor alignment
2018-11-16 19:25:44 -05:00
Recep Aslantas
08479f38ce
Merge pull request #63 from recp/avx
...
avx: replace binary constants (resolve https://github.com/recp/cglm/issues/62 ) with hex and fix glm_mul_avx
v0.4.9
2018-10-19 09:52:32 +03:00
Recep Aslantas
dadae4b773
avx: fix glm_mul_avx
...
* use glm_mat4_mul_avx here. because it seems there is no big difference for now.
2018-10-19 09:40:40 +03:00
Recep Aslantas
20360f2296
avx: replace binary constants with hex
2018-10-12 09:05:42 +03:00
Recep Aslantas
aa2b0f2631
code style and minor optimization[s]
2018-09-22 00:10:50 +03:00
Recep Aslantas
280ac72fd8
Merge pull request #61 from hartenfels/master
...
Replace non-standard M_PI* constants
2018-09-21 23:39:10 +03:00
Recep Aslantas
7405d5e1d0
Update types.h
2018-09-21 23:33:42 +03:00
Carsten Hartenfels
eefafefbae
Also add a load of other number constants
...
These are all missing from standard C, so we might as well define em.
See https://github.com/recp/cglm/pull/61#discussion_r219406859
2018-09-21 20:03:28 +02:00
Carsten Hartenfels
b9021978cb
Replace the use of deprecated CGLM_PI* constants
2018-09-21 19:59:23 +02:00
Carsten Hartenfels
3fd12032e6
Clean up pi constants, deprecating the old names
...
GLM_PI* is now used for the double versions, GLM_PI*f for the float
versions. The CGLM_ prefixed versions are now deprecated, since that
prefix is kinda only used for constants.
See https://github.com/recp/cglm/pull/61#issuecomment-423069770
2018-09-21 07:29:54 +02:00
Carsten Hartenfels
59ee8c1fd2
Use even more precise definitions for pi constants
...
See https://github.com/recp/cglm/pull/61#issuecomment-422955122
2018-09-21 07:26:55 +02:00
Carsten Hartenfels
b00f2b9ccc
Replace M_PI_4 in test_affine with CGLM_PI_4
...
As in the previous commit, because it's non-standard and depending on
your settings it can fail to compile because of it.
2018-09-19 20:46:37 +02:00
Carsten Hartenfels
d3c50147cb
Replace non-standard M_PI* constants with literals
...
M_PI, M_PI_2 and M_PI_4 aren't part of the C standard. If you put your
gcc into strict standards mode, like `-std=c11`, you won't get these
constants and including cglm.h will fail.
This commit replaces those constants with their literal values. The cast
to a float remains, to keep exactly the same behavior as before.
2018-09-19 20:42:05 +02: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
Recep Aslantas
2e1790ccf9
Merge pull request #59 from jonathanplatzer/avx
...
Fix alignment issue when using AVX
v0.4.8
2018-07-19 11:38:55 +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
3738499927
update doc for vec4_ucopy
2018-07-14 12:12:15 +03:00
Recep Aslantas
1d527dc2f0
unalignned version for vec4_copy
2018-07-14 12:03:42 +03:00
Recep Aslantas
43c4d05d4a
new version for clamp: clamp to zero and one
2018-07-12 11:39:56 +03:00
Recep Aslantas
c5f5032fcc
fix function params docs
2018-07-10 11:42:18 +03:00
Recep Aslantas
5d605ce372
avoid zero division for percent
...
* two value may be same, in this case now returns 1.
* to must be >= from and current <= to && current >= from
2018-07-10 10:54:31 +03:00
Recep Aslantas
c216c0cb7e
add MIN and MAX macros
...
because we could use min/max for intergers too. it may not guarantee that MIN and MAX macros will always be defined by compiler
2018-06-26 15:27:53 +03:00
Recep Aslantas
eb8e0df6df
update version
2018-06-21 10:54:53 +03:00
Recep Aslantas
1775bf7458
Merge pull request #57 from recp/anim
...
Animation Utils
2018-06-21 10:48:19 +03:00
Recep Aslantas
3adeac06f8
update build files
2018-06-21 10:07:51 +03:00
Recep Aslantas
669777eb37
additional utils
2018-06-18 17:55:25 +03:00
Recep Aslantas
02f6c67393
improve easing funcs
2018-06-15 08:55:59 +03:00
Recep Aslantas
564324f5d2
easing functions
2018-06-10 10:29:02 +03:00
Recep Aslantas
93e6c3c102
Merge pull request #56 from recp/sphere
...
aabb and sphere intersect functions
v0.4.7
2018-06-09 18:43:54 +03:00
Recep Aslantas
857265b892
sphere point intersection
2018-06-09 18:21:29 +03:00
Recep Aslantas
fc14cedf89
update version
2018-06-09 18:10:54 +03:00
Recep Aslantas
7a80178357
improve quat_look
2018-06-09 18:10:44 +03:00
Recep Aslantas
720b617ee0
sphere and aabb
2018-05-30 23:42:22 +03:00
Recep Aslantas
3dc9070909
squared distance for vec3
2018-05-30 23:35:59 +03:00
Recep Aslantas
6b2b4b4f12
implement glm_aabb_sphere as GraphicsGems Solid Box - Solid Sphere test
2018-05-30 23:00:18 +03:00