Recep Aslantas
c32e986497
mat2: suppress warnings for initializing mat2 sruct
2020-05-29 12:51:45 +03:00
Recep Aslantas
fabc655919
Merge branch 'master' of https://github.com/recp/cglm
2020-03-06 23:33:30 +03:00
Recep Aslantas
7eada03909
reemove redundant forward declerations
2020-03-06 23:33:27 +03:00
Zollerboy1
ad4a763d47
fix glms_vec2_rotate() by using a dest vec2s instead of taking an axis vector ( #122 )
2020-03-04 17:05:32 +03:00
Zollerboy1
1f9765c5e5
fix glms_sphere_transform by using mat4s instead of mat4 ( #121 )
...
Co-authored-by: Recep Aslantas <m@recp.me >
2020-03-04 11:56:40 +03:00
Recep Aslantas
eb0d47cfa1
vec2: add struct version for vec2 and vec2-ext
2020-02-25 14:34:11 +03:00
Recep Aslantas
638b9f6dbe
fix 'function declaration isn’t a prototype'
2020-02-24 23:11:03 +03:00
Recep Aslantas
43ae3b332a
add tests for vec2 and its call version
2020-02-24 10:06:19 +03:00
Recep Aslantas
8a068c3291
Merge branch 'master' into vec2_mat2
2020-02-23 13:10:36 +03:00
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
Jay Dolan
0330be853c
Fix spelling error in name of glms_rotate_x.
2020-01-05 14:20:06 -05: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
11dae5126b
Add braces around matrix struct intializers
...
They're missing and trigger warnings in the tests.
2019-11-24 13:32:35 -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
Recep Aslantas
b46a4ccee5
Merge branch 'vec2_mat2' of https://github.com/recp/cglm into vec2_mat2
2019-09-01 17:12:12 +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
Recep Aslantas
3640e402da
mat2 struct version
2019-08-31 14:36:57 +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
2025b35757
struct: struct vesion of swizzle funcs
2019-06-06 13:18:31 +03:00
Recep Aslantas
3797c55154
fix test build, supress warnings, update header guards for struct api
2019-06-03 12:54:27 +03:00
Recep Aslantas
9a73d969a7
struct: euler api as structs
2019-06-03 12:24:18 +03:00
Recep Aslantas
290f54bad4
struct: quaternion api as structs
2019-06-03 12:12:50 +03:00
Recep Aslantas
2b1126a2fc
code style
2019-06-03 09:47:52 +03:00
Recep Aslantas
b22170794a
struct: camera api as structs
2019-06-03 09:39:11 +03:00
acoto87
d322a0ba8f
Replace directly assignment with glm_vec{3,4}_copy functions
2019-05-22 16:24:11 -05:00
acoto87
ba2031d977
- Rename structs folder to struct
...
- Include files in `cglms.h`
- Fix style issues (tabs to spaces, open brace without newline)
2019-05-21 16:45:34 -05:00