Bruce Mitchener
e4419c4f18
Fix typos.
2024-02-08 15:12:30 +07:00
BeeverFeever
7701a1a789
Add int min and max functions
2023-12-25 12:50:29 +11:00
Recep Aslantas
a1485a14f6
option to override FLT_EPSILON with GLM_FLT_EPSILON
2020-05-26 23:00:00 +03:00
Recep Aslantas
686deb8eb1
util: use glm_clamp_zo to clamp between 0 and 1
2020-03-19 12:37:52 +03:00
Recep Aslantas
00523f0b89
helper to swap two float values
2020-03-01 12:56:11 +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
Recep Aslantas
81a74ba225
move 'stdbool.h' to common header, add missing common.h header to public headers
2019-03-31 18:58:20 +03:00
Carsten Hartenfels
b9021978cb
Replace the use of deprecated CGLM_PI* constants
2018-09-21 19:59:23 +02: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
669777eb37
additional utils
2018-06-18 17:55:25 +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
416e2f4452
vec: lerp for vec3 and vec4
2018-04-10 11:44:16 +03:00
Recep Aslantas
ea0a10ade9
suppress warnings
2018-04-03 16:47:59 +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
86055097e1
clamp functions
2018-03-22 18:10:10 +03:00
Recep Aslantas
9649a0285f
fix documentation param names
2018-01-18 20:52:24 +03:00
Recep Aslantas
37f6bb8725
add documentation to util header
2018-01-15 16:02:48 +03:00
Recep Aslantas
3e4f52b3af
optimize operations, fix max sign
2018-01-02 10:16:46 +03:00
Recep Aslantas
634e1170a3
min and max util
2017-12-30 17:50:53 +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