Recep Aslantas
406d09e085
make plane zero if norm is zero after normalization
2020-01-19 21:48:55 +03:00
Recep Aslantas
65de029acb
now working on v0.6.3
2020-01-19 20:37:49 +03:00
Recep Aslantas
f8784ffe8a
win: enable anonymous structs for Visual Studio 2015 and later
2020-01-17 23:55: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
Recep Aslantas
82a195f26a
now owrkin on v0.6.2
2020-01-17 23:26:40 +03:00
Recep Aslantas
af7f8a5436
vec4: fix parameter name for NEON
2020-01-15 09:56:54 +03:00
Recep Aslantas
c3b5bb869a
arm: fix type castings for ARM Neon
2020-01-15 09:56:19 +03:00
Jay Dolan
0330be853c
Fix spelling error in name of glms_rotate_x.
2020-01-05 14:20:06 -05:00
Carsten Hartenfels
d89c01b39f
Intuit if we should use anonymous structs
...
Rather than making the user #define something explicitly, we can guess
based on the compiler type and C standard.
2019-11-24 16:02:12 -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
c8211b3a62
Re-order struct type contents array-first
...
So that initializers will prefer the array entry, rather than trying to
initialize the anonymous struct.
2019-11-24 16:01:55 -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
4b9b7aeb20
Add a vec2s struct type for consistency
...
There's a vec2 type, so there should probably be a struct version of it
too. Even if no functions use it right now, if a library user (like me)
needs a 2-element vector, they don't need to roll their own.
2019-11-23 14:37:48 -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
c253769fcd
Update applesimd.h
2019-11-07 22:43:47 +03:00
Recep Aslantas
2336256808
Helpers for apple's simd library ( #107 )
...
* helper to convert cglm matrix to Apple's simd type
2019-11-07 22:32:15 +03:00
Recep Aslantas
381e66349a
win,test: fix test build for windows and suppress warnings
2019-10-14 19:08:34 +03:00
Recep Aslantas
7c10840a85
tests: add more tests for vec3
2019-09-23 22:39:53 +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
Recep Aslantas
39dc61af54
tests: add a few test for mat4
2019-09-15 19:33:41 +03:00
Recep Aslantas
176cc28510
now working on v0.6.1
2019-09-12 07:11:49 +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
03fda193a5
vec: update docs for norm
2019-08-30 14:47:26 +03:00
Luigi Castelli
1d804781de
swapped argument order in glmm_store3() ( #102 )
...
close https://github.com/recp/cglm/issues/101
2019-08-26 16:37:44 +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
1fdd459733
add tests for vector swizzling, rename vec to vec3
2019-06-06 13:12:17 +03:00
Recep Aslantas
f0be6eb448
Merge branch 'master' into swizzle
2019-06-06 12:58:55 +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
099239e3f5
rename cglms.h to struct.h
2019-06-03 12:29:36 +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
b9de553f23
quat: fix glm_quat_axis axis parameter type
2019-06-03 12:01:14 +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
Recep Aslantas
8affe9878f
Merge branch 'master' into cglm-structs
2019-05-25 09:13:47 +03:00
Recep Aslantas
f26601bfa7
now working on v0.6.0
2019-05-25 09:12:08 +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
acoto87
fd3b0634d2
Change for function that output multiple values
...
- Now the functions that output mutliple values, such as glms_decompose_rs and glms_decompose receive pointers.
- Added missing comments to struct/vec3 and struct/vec4 files.
2019-05-20 17:11:10 -05:00
acoto87
1d1bf8e91a
- Change the approach implementation of several functions
...
- Added `glms_vec4_pack` and `glms_vec4_unpack` to pack and unpack arrays of `vec4s`.
- Added `glms_vec3_pack` and `glms_vec3_unpack` to pack and unpack arrays of `vec3s`.
- Fixes in functions that accumulates in one parameter
-
2019-05-16 17:03:55 -05:00
Alejandro Coto Gutiérrez
f108bb4c71
Merge branch 'master' into cglm-structs
2019-05-08 10:10:10 -05:00
Recep Aslantas
2adb4c5593
use CGLM_ALIGN_MAT on mat4 typedef
2019-05-08 09:18:11 +03:00
Recep Aslantas
6fa5173cfd
now working on v0.5.5
2019-05-08 09:18:05 +03:00
acoto87
bc1969ab75
- Changes in mat3s and mat4s types.
...
- Added `ivec3s` type
- Struct implementation of: affine.h, box.h, color.h, curve.h, frutum.h, io.h, plane.h, project.h
- Deleted `glms_mat3_transpose_to` and `glms_mat4_transpose_to`
- Bug fixes in mat4.h
2019-05-07 16:16:00 -05:00
acoto87
3ff902de9c
add mat3 and mat4 implementation
2019-05-03 22:48:13 -05:00