Recep Aslantas
712cbee580
remove cmocka from submodules and update docs
2019-09-12 07:10:37 +03:00
Recep Aslantas
9ab9e95ce5
Custom Built-in Unit Test Suite ( #105 )
...
* tests: new built-in test runner
* tests: update tests for new builtin test api
* tests: print test suite logs
* tests: remove cmocka from build files
* tests: colorize test suite log and remove redundant prints
2019-09-12 06:56:44 +03:00
Recep Aslantas
1fdd459733
add tests for vector swizzling, rename vec to vec3
2019-06-06 13:12:17 +03:00
Recep Aslantas
3797c55154
fix test build, supress warnings, update header guards for struct api
2019-06-03 12:54:27 +03: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
Alejandro Coto Gutiérrez
f04078dc33
Merge branch 'master' into cglm-structs
2019-04-30 14:58:02 -05:00
Recep Aslantas
e909c8268d
Merge branch 'master' into fix_82
2019-04-27 09:37:08 +03:00
Recep Aslantas
73e6b65da0
test: fix comparing floats in bezier tests
2019-04-27 09:36:15 +03:00
Wasin Thonkaew
5b80e0e3c2
test cases for glm_vec4_distance
2019-04-19 03:04:00 +08:00
acoto87
1aa54dc110
- separating struct types into types-struct.h
...
- vec3s implementation
- fix style issues
2019-04-08 21:06:01 -05:00
acoto87
c25469829a
Initial implementation of struct type vec4s
2019-04-03 22:25:49 -06:00
Recep Aslantas
7848dda1dd
curve: cubic hermite intrpolation
2019-01-29 22:17:44 +03:00
Recep Aslantas
730cb1e9f7
add bezier helpers
2019-01-28 15:32:24 +03:00
Recep Aslantas
b0e48a56ca
test: rename test_rand_angle() to test_rand()
2019-01-28 15:31:03 +03:00
Recep Aslantas
92605f845a
test: fix comparing two float values in tests
2018-12-05 16:34:22 +03:00
Recep Aslantas
0b8c63a90e
vec: rename glm_vec_
namespace to glm_vec3_
2018-11-28 23:22:30 +03:00
Carsten Hartenfels
b9021978cb
Replace the use of deprecated CGLM_PI* constants
2018-09-21 19:59:23 +02:00
Carsten Hartenfels
b00f2b9ccc
Replace M_PI_4 in test_affine with CGLM_PI_4
...
As in the previous commit, because it's non-standard and depending on
your settings it can fail to compile because of it.
2018-09-19 20:46:37 +02:00
Recep Aslantas
4dbcd28fdb
use mul_rot for rotations to make thrm faster
2018-04-18 14:12:56 +03:00
Recep Aslantas
cefd5fb53d
test: add some tests for affine transforms
2018-04-17 10:33:52 +03:00
Recep Aslantas
821c79572f
test: add some tests for mat3
2018-04-15 20:47:38 +03:00
Recep Aslantas
59aacee968
optimize clamp for vec4
2018-04-14 12:49:37 +03:00
Recep Aslantas
429aff087f
optimize min and max for vec4
2018-04-14 11:35:28 +03:00
Recep Aslantas
d6395d4fb8
vec: optimize rotate vector using matrix
...
* add mat3 version
2018-04-13 22:33:32 +03:00
Recep Aslantas
c05f58a169
vec: add addadd, subadd and muladd helpers
2018-04-13 15:46:43 +03:00
Recep Aslantas
d841f8809d
vec: add some new functions for vector
...
* _mul: multiply two vector (replacement for _mulv)
* _div: div two vector
* _divs: div vector with scalar
* adds: add scalar to each components of vec
* subs: sub scalar from each components of vec
2018-04-13 15:12:56 +03:00
Recep Aslantas
25fc3d0284
vec: add one and zero helpers for vectors
2018-04-13 11:57:14 +03:00
Recep Aslantas
79f8b1ebf8
vec4: optimize vec4 norm and norm2
2018-04-13 11:18:42 +03:00
Recep Aslantas
0eb37da8bb
vec4: optimize vec4 normalize with SIMD
2018-04-13 11:01:07 +03:00
Recep Aslantas
2d77123999
quat: fix quaternion inverse and tests about it
...
* multiplication quaternion and its inverse must be identity
2018-04-11 16:50:37 +03:00
Recep Aslantas
fdea13507b
replace mat4_mulq with glm_quat_rotate
...
* glm_quat_rotate is better name to rotate transform matrix using quaternion.
* we may use mat4_mulq in the future for another purpose e.g. left multiplication quat with matrix
2018-04-11 10:49:53 +03:00
Recep Aslantas
80d255e6d9
rotate vector using quaternion
2018-04-11 00:47:11 +03:00
Recep Aslantas
5dec68823c
add additional tests and comments to quat tests
2018-04-10 17:41:25 +03:00
Recep Aslantas
4c79fee5d3
quat: additional tests for angle, axis, mul (hamilton product)
2018-04-10 17:16:31 +03:00
Recep Aslantas
9466182c10
quat: create view wmatrix with quaternion helper
2018-04-10 16:01:23 +03:00
Recep Aslantas
6f69da361b
quaternion multiplication
...
* convert quaternion multiplication to xyzw
* previous implementation may be wrong, wikipedia version implemented
* implement SSE version
2018-04-09 23:56:09 +03:00
Recep Aslantas
f0daaca58b
improve matrix to quaternion
2018-04-09 00:46:00 +03:00
Recep Aslantas
e4e0fa623c
sse2 version of vec4 dot product
...
* use this for normalizing vector
2018-04-08 18:27:54 +03:00
Recep Aslantas
257c57d41f
mat4 to quaternion
2018-04-07 19:46:46 +03:00
Recep Aslantas
e8615ea14c
fix tests list
2018-04-03 12:35:30 +03:00
Recep Aslantas
be81d73895
Update test_main.c
2018-04-03 12:32:21 +03:00
Recep Aslantas
b16f0ded85
Merge branch 'master' into proj
2018-04-03 12:30:03 +03:00
Recep Aslantas
63acfd681e
fix unproject, add tests to project/unproject
2018-04-03 12:27:20 +03:00
Recep Aslantas
26110f83d1
euler: fix thetaY in extracting angles
2018-03-27 12:35:19 +03:00
Recep Aslantas
d1f3feeb6e
test: add tests for euler XYZ
2018-03-27 12:14:46 +03:00
Recep Aslantas
21ec45b2af
add tests for clamp
2018-03-22 21:24:41 +03:00
Recep Aslantas
50c23ce1c0
add missing definitions, fix initizlizing vector
2018-01-10 22:42:34 +03:00
Recep Aslantas
61ac032751
new wrappers for lookat
2018-01-10 22:02:14 +03:00
Recep Aslantas
642cc8d603
perspective sizes
2018-01-04 13:54:35 +03:00
Recep Aslantas
797c4581ee
extract fovy and aspect for perpective matrix
2018-01-04 11:16:09 +03:00