Recep Aslantas
2ea9308361
quat: fix glmc_quat_normalize()
2019-09-25 07:41:29 +03:00
Recep Aslantas
dcf5b5c1c4
vec: fix min/max for compiled vec3
2019-09-24 17:01:56 +03:00
Recep Aslantas
7b25cbb9cb
vec: fix min/max for compiled vec3
2019-09-22 23:25:33 +03:00
Recep Aslantas
79087a9813
mat4: add zero for call
2019-09-18 23:33:10 +03:00
Recep Aslantas
0377b99f80
mat4: add zero for call
2019-09-18 17:07:15 +03:00
Luigi Castelli
27cc9c3351
vec: some useful functions ( #103 )
...
These functions are added:
- abs(): absolute value
- fract(): fractional part
- norm_one(): L1 norm
- norm_inf(): infinity norm
- hadd(): horizontal add
- hmax(): horizontal max
2019-09-01 00:30:15 +03:00
Luigi Castelli
144624962a
added glm_vec_fill() ( #100 )
...
* alternative name for _broadcast(): _fill()
2019-08-26 09:19:26 +03:00
Luigi Castelli
4639f3184a
glm_lerpc(), glm_step(), glm_smoothstep(), glm_smoothinterp() ( #98 )
...
* lerp, step, smoothstep
* glm_lerp() and friends are no longer clamped, use glm_lerpc() and friends
* mix() function as wrapper of lerp()
* no there are clamp and raw version of lerp functions
2019-08-25 22:17:36 +03:00
Luigi Castelli
43b36f1dc1
squared distance with SIMD support ( #96 )
...
squared distance for vec4
2019-08-23 10:32:54 +03:00
Luigi Castelli
d03d4b8df5
new name for euler sequence ( #94 )
...
* new name for angle sequence
2019-08-21 22:52:01 +03:00
Recep Aslantas
5bf5ceeb40
win: remove optional DLLMain entry point
2019-07-17 17:26:14 +03:00
Recep Aslantas
b9de553f23
quat: fix glm_quat_axis axis parameter type
2019-06-03 12:01:14 +03:00
Recep Aslantas
bb8ff25752
Revert "mark readonly parameters as const"
2019-04-30 08:19:07 +03:00
Recep Aslantas
392565f920
mark readonly parameters as const (continue)
2019-04-28 21:48:19 +03:00
Recep Aslantas
2b1eece9ac
mat3: add rmc for mat3
2019-02-13 10:12:49 +03:00
Recep Aslantas
60cfc87009
remove bezier_solve for now
2019-02-02 15:30:05 +03:00
Recep Aslantas
7848dda1dd
curve: cubic hermite intrpolation
2019-01-29 22:17:44 +03:00
Recep Aslantas
c22231f296
curve: de casteljau implementation for solving cubic bezier
2019-01-28 15:52:42 +03:00
Recep Aslantas
730cb1e9f7
add bezier helpers
2019-01-28 15:32:24 +03:00
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
59b9e54879
vec4: helper to fill vec4 as [S^3, S^2, S, 1]
2019-01-26 15:54:10 +03:00
Recep Aslantas
07e60bd098
cam: extend frustum's far distance helper ( #71 )
...
* this will help to implement zoom easily
2019-01-16 14:59:58 +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
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
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
98da3daf82
identiy helper for arrays (matrix/quaternion)
...
this helpers makes all array elements identity
2018-09-12 12:44:11 +03:00
Recep Aslantas
1d527dc2f0
unalignned version for vec4_copy
2018-07-14 12:03:42 +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
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
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
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
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
065f93ab3c
update docs, drop scale1
2018-04-18 14:30:44 +03:00
Recep Aslantas
d648f5772d
affine: drop rotate_ndc functions
2018-04-18 10:57:35 +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
7f7007574b
vec: implement muladd's scalar version
2018-04-13 22:30:44 +03:00
Recep Aslantas
c05f58a169
vec: add addadd, subadd and muladd helpers
2018-04-13 15:46:43 +03:00