Commit Graph
100 Commits
Author SHA1 Message Date
Recep Aslantas 60cb4beb0a curve: helper for calculate result of SMC multiplication 2019-01-26 18:06:26 +03:00
Recep Aslantas 32ddf49756 mat4: helper for row * matrix * column 2019-01-26 18:05:05 +03:00
Recep Aslantas 807d5589b4 call: add missing end guard to call headers 2019-01-26 16:05:11 +03:00
Recep Aslantas 59b9e54879 vec4: helper to fill vec4 as [S^3, S^2, S, 1] 2019-01-26 15:54:10 +03:00
Recep Aslantas fc7f958167 simd: remove re-load in SSE4 and SSE3 2019-01-25 21:56:17 +03:00
Recep Aslantas 31bb303c55 simd: organise SIMD-functions
* optimize dot product
2019-01-24 10:17:49 +03:00
Recep Aslantas be6aa9a89a simd: optimize some mat4 operations with neon 2019-01-22 09:39:57 +03:00
Recep Aslantas f65f1d491b simd: optimize vec4_distance with sse and neon 2019-01-22 09:23:51 +03:00
Recep Aslantas f0c2a2984e simd, neon: add missing neon support for vec4 2019-01-22 09:05:38 +03:00
Recep Aslantas b117f3bf80 neon: add neon support for most vec4 operations 2019-01-21 23:14:04 +03:00
Recep Aslantas e3d3cd8ab8 now working on v0.5.2 2019-01-15 12:08:54 +03:00
Recep Aslantas 7219b02d23 remove alignment from vec3 and mat3 2018-12-25 10:08:36 +03:00
Recep Aslantas 21834b4ffb matrix: trace of matrix 2018-12-06 18:17:02 +03:00
Recep Aslantas 2ef9c23a6c vec: normalize cross product helper 2018-12-06 18:01:52 +03:00
Recep Aslantas 92605f845a test: fix comparing two float values in tests 2018-12-05 16:34:22 +03:00
Recep Aslantas b23d65bef5 now working on v0.5.1 2018-12-05 16:32:13 +03:00
Recep Aslantas 2f632c6311 Update README.md 2018-12-02 21:35:50 +03:00
Recep Aslantas b47d148b81 Update README.md 2018-12-02 21:35:31 +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 a7cdbcec2b now working on v0.5.0 2018-11-17 22:31:51 +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 7405d5e1d0 Update types.h 2018-09-21 23:33:42 +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
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 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 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
Recep Aslantas c8fc460ba1 add support for spheres 2018-05-29 23:29:09 +03:00
Recep Aslantas 5b3aabc103 aabb intersect functions
* AABB vs AABB
* AABB vs Point
* AABB vs Sphere
* AABB contains AABB
2018-05-29 23:19:39 +03:00
Recep Aslantas af812e86eb add a note to clarify up vector restriction for glm_lookat and glm_look 2018-05-29 11:30:38 +03:00
Recep Aslantas 059bdfdd4b update docs 2018-05-27 11:54:05 +03:00
Recep Aslantas ef0653640f update cocoapod version tag 2018-05-27 11:53:48 +03:00
Recep Aslantas e5d61b3433 update mat4_mulv3 api to include translation 2018-05-27 11:46:27 +03:00
Recep Aslantas 73c073cf32 add missing call functions 2018-05-27 11:44:06 +03:00
Recep Aslantas 1362bef50f fix glm_translate_to 2018-05-23 23:13:41 +03:00
Recep Aslantas 7d783eeace align local variables on stack 2018-05-23 23:04:06 +03:00
Recep Aslantas e12e79b1a5 improve scale_make 2018-05-23 22:11:44 +03:00
Recep Aslantas 6cd3d52dc5 improve translate_make 2018-05-23 22:08:12 +03:00
Recep Aslantas fb2cac9816 aabb: center of AABB helper
* it is just wrapper of vec_center but it saves to access min and max values of AABB
2018-05-22 17:45:37 +03:00
Recep Aslantas 4e63325f55 aabb: add missing call versions 2018-05-22 17:44:36 +03:00
Recep Aslantas 96c3e604ff now working on v0.4.6 2018-05-22 17:43:46 +03:00
Recep Aslantas 599524dacf docs: add new option to docs 2018-05-10 16:42:13 +03:00
Recep Aslantas da5ad69863 simd: rename _mm_ extensions to glmm_ 2018-05-10 14:27:53 +03:00
Recep Aslantas 464bd917d0 update readme 2018-05-10 12:21:33 +03:00
Recep Aslantas c6d07bb6eb surround PI with parentheses + code style + update docs 2018-05-10 12:18:54 +03:00
Recep Aslantas 94b286f1f9 docs: add new alignment option to docs 2018-05-09 16:43:42 +03:00
Recep Aslantas f774925e8a win, simd: make sure that CGLM_ALL_UNALIGNED is defined for older visual studios 2018-05-09 15:30:54 +03:00
Recep Aslantas 0e49e95161 win: update visual studio version for align requirement 2018-05-08 18:29:02 +03:00
Recep Aslantas b277357800 update gitignore 2018-05-08 18:28:31 +03:00
Recep Aslantas 835cec2ccb drop alignment requirement if CGLM_ALL_UNALIGNED defined
* bring alignment back for visual studio 2017
2018-05-08 16:26:33 +03:00
Recep Aslantas 5dbbd0826d simd: replace glm_simd_ with glmm_
* now glmm_ is used as global simd namescape
2018-05-08 15:55:36 +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 a9d56f2dae docs: fix typos 2018-05-04 00:50:56 +03:00
Recep Aslantas 94d6036c38 suppress warnings for Mingw 2018-04-30 11:09:42 +03:00
Recep Aslantas 6c01eff056 now working on v0.4.5 2018-04-30 10:59:40 +03:00
Recep Aslantas ada69a7c43 fix cocoapods validation errors 2018-04-22 10:14:17 +03:00
Recep Aslantas cef97fca3e add cocoapods spec 2018-04-22 01:03:17 +03:00
Recep Aslantas 498a33fac5 fix public header's includes 2018-04-21 22:36:25 +03:00
Recep Aslantas 3c7a729729 build: remove making symbolic link for libtoolize 2018-04-20 15:19:06 +03:00
Recep Aslantas a6a37995e9 build: update automake sources 2018-04-18 23:02:15 +03:00
Recep Aslantas 6202179c23 update version 2018-04-18 22:30:20 +03:00
Recep Aslantas 22b699174c build: improve calling libtoolize 2018-04-18 21:47:53 +03:00
Recep Aslantas e28cf1d3f6 remove unused variable 2018-04-18 15:23:07 +03:00
Recep Aslantas 63966ee5c0 quat: use the new "glm_mul_rot" for quaternion
* this should be faster than mat4_mul
2018-04-18 15:16:24 +03:00
Recep Aslantas a723ecdb7e add troubleshooting to docs 2018-04-18 15:11:06 +03:00
Recep Aslantas 065f93ab3c update docs, drop scale1 2018-04-18 14:30:44 +03:00
Recep Aslantas 4dbcd28fdb use mul_rot for rotations to make thrm faster 2018-04-18 14:12:56 +03:00
Recep Aslantas be0e3fc9f2 new matrix multiplication helper for rotation matrices 2018-04-18 14:05:09 +03:00
Recep Aslantas d648f5772d affine: drop rotate_ndc functions 2018-04-18 10:57:35 +03:00
Recep Aslantas f163fcd043 simd: load vec3 helpers for sse/sse2 2018-04-18 00:00:47 +03:00
Recep Aslantas 27ab6a7dd0 update docs, add clarifications for affine transforms 2018-04-17 15:42:24 +03:00
Recep Aslantas 33e951fe2e implement rotate_at for quat and provide make version 2018-04-17 12:17:04 +03:00
Recep Aslantas c63c6c90ac implement rotate_at 2018-04-17 11:12:18 +03:00
Recep Aslantas a2792178db add missing call funcs for affine transforms 2018-04-17 11:07:57 +03:00
Recep Aslantas cefd5fb53d test: add some tests for affine transforms 2018-04-17 10:33:52 +03:00