Vincent Davis Jr
5e798a94e3
test_quat: add more robust quat_make test
...
Makes it so that it's easier to identify
the potential usecase of function. Commit also
includes a fix to the struct/quat.h glms_quat_make
comment. Should be returning versors it's not
a void function.
Signed-off-by: Vincent Davis Jr <vince@underview.tech >
2023-07-02 12:37:28 -05:00
Vincent Davis Jr
bfe5ea6ab7
quat: add new function glm_quat_make
...
Function takes in a 4 element float array
and converts it into a quaternion.
Signed-off-by: Vincent Davis Jr <vince@underview.tech >
2023-06-28 22:49:49 -05:00
Recep Aslantas
c221f8883a
struct: provide option to omit struct api namespace e.g. glms_ and an …
2023-04-09 17:20:38 +03:00
Recep Aslantas
a2bd00df32
fix including headers, and suppress warnings
2021-08-16 15:51:52 +03:00
Sundaram Ramaswamy
b5802b99b2
Compute quaternion rotating a vector into another
...
Both `vec3` inputs should be of unit length; returns a unit quaternion.
2021-06-10 23:10:54 +05:30
Sundaram Ramaswamy
9665be3138
Add struct API wrapper
2021-05-07 13:49:44 +05:30
Recep Aslantas
8ac1347f8a
remove unused params from docs
2020-02-21 12:55:52 +03:00
Recep Aslantas
2278eba93c
quat: fix quat_for and quat_forp implementations
2020-02-20 23:37:35 +03:00
Recep Aslantas
9af0ebd142
win: fix glms_quat_imagn if use struct option is disabled
2020-01-17 23:27:20 +03:00
Carsten Hartenfels
8ad273475f
Make GLMS_ initializers use the GLM_ versions
...
So that we don't write them twice. More consistent this way.
2019-11-24 16:02:03 -05:00
Carsten Hartenfels
f3ea5b4f3e
Change empty prototypes to (void)
...
Because () means an arbitrary number of arguments in C, which is not
intended here.
2019-11-23 10:10:17 -05: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
290f54bad4
struct: quaternion api as structs
2019-06-03 12:12:50 +03:00