Recep Aslantas
46303a2fb1
define common SIMD flags in common header
2017-07-11 16:31:55 +03:00
Recep Aslantas
a55b0ab5db
re-organise test structure
2017-07-11 12:30:02 +03:00
Recep Aslantas
71d731173a
fix parameter docs
2017-07-06 17:00:04 +03:00
Recep Aslantas
56f84f0d49
add function, type and macros in header to top of header
2017-06-27 12:17:03 +03:00
Recep Aslantas
f6959b99c6
fix pre-compiled vector header and suppress warnings
2017-06-15 20:06:00 +03:00
Recep Aslantas
991833ab77
fix precise matrix inv
2017-06-15 19:56:51 +03:00
Recep Aslantas
95cedccbd0
fix ending statement
2017-06-15 19:53:49 +03:00
Recep Aslantas
50b8b18560
add guard to SIMD header
2017-06-15 19:51:44 +03:00
Recep Aslantas
877f1d04bb
suppress "Possible misuse of comma operator" warnings
2017-06-15 19:50:12 +03:00
Recep Aslantas
237e91fcad
update README
2017-06-13 21:06:16 +03:00
Recep Aslantas
30ef6d93aa
doc: getting started
2017-06-11 17:44:42 +03:00
Recep Aslantas
cfdb86b5fc
add epsilon version to compare vector with vector( or with value )
2017-06-11 16:53:18 +03:00
Recep Aslantas
1e32edea65
docs: building cglm
2017-06-06 22:55:52 +03:00
Recep Aslantas
3fbf590d39
func for make matrix identity
2017-05-29 20:52:38 +03:00
Recep Aslantas
3728102644
add _scale_as feature
...
glm_vec_scale multiplies vector (all items) by a scalar
result = vector * factor, new scale = old scale * factor
now it is possible to scale a vector as specified factor
result = unit(vector) * factor, new scale = factor
2017-05-21 21:34:50 +03:00
Recep Aslantas
eafcd1d103
improve and add comments to matrix decompositions
2017-05-21 20:48:17 +03:00
Recep Aslantas
ed5ffc43cb
optimize projection functions
2017-05-21 19:30:38 +03:00
Recep Aslantas
e47cc22300
build: fix make install include path
...
* now we can include library headers like this: #include <cglm/cglm.h>
2017-05-21 13:39:38 +03:00
Recep Aslantas
8aa80d3e9b
win: add version header to project
2017-05-21 12:36:31 +03:00
Recep Aslantas
f90d3f5faf
add removed functions as macro as DEPRECATED
2017-05-21 12:28:06 +03:00
Recep Aslantas
02513b77c1
add version info
2017-05-21 01:31:25 +03:00
Recep Aslantas
fb444203b6
fix inlining exported function
2017-05-21 01:29:10 +03:00
Recep Aslantas
1214a566b6
translate and scale make util
2017-05-15 22:27:20 +03:00
Recep Aslantas
41c874aa97
fix linking test lib
2017-04-25 23:56:58 +03:00
Recep Aslantas
38be538342
test: test mat4_mul
2017-04-25 23:27:15 +03:00
Recep Aslantas
4d55510ff0
ignore: ignore test files
2017-04-25 23:25:10 +03:00
Recep Aslantas
e789186889
zero initializer for matrix
2017-04-25 23:22:29 +03:00
Recep Aslantas
24b9992f19
deps: add cmocka as submodule for unit testing
2017-04-22 16:56:16 +03:00
Recep Aslantas
e7f35704ca
fix identity quat initialization for C++ / Windows
2017-04-22 15:57:08 +03:00
Recep Aslantas
24ab1ff621
add badges to README
2017-04-22 15:39:08 +03:00
Recep Aslantas
f1b55589ac
ci: fix build script for travis ci
2017-04-22 15:29:08 +03:00
Recep Aslantas
ef5a8549e2
add missing file for windows
2017-04-22 15:20:38 +03:00
Recep Aslantas
d5371f10a1
ci: set appveyor image
2017-04-22 15:17:36 +03:00
Recep Aslantas
cab370d1c7
ci: add travis and appveyor
2017-04-22 15:02:12 +03:00
Recep Aslantas
76107064d7
add build instructions for Windows
2017-04-22 14:59:18 +03:00
Recep Aslantas
12ea809e0a
enable code analysis for windows
2017-04-22 14:59:18 +03:00
Recep Aslantas
e2fcf80e48
build for windows (dll)
2017-04-22 14:59:18 +03:00
Recep Aslantas
33770b9181
add missing docs to vector header
2017-04-15 02:08:43 +03:00
Recep Aslantas
cb6d5c1f7e
center point of to vectors
2017-04-15 02:05:06 +03:00
Recep Aslantas
4ffc01655e
optimize quat to matrix
2017-04-10 19:52:08 +03:00
Recep Aslantas
25feab7860
use multiplication instead of division for 1 / 2
2017-04-10 18:52:32 +03:00
Recep Aslantas
bf18ca647e
distance between two vectors
2017-04-09 21:14:26 +03:00
Recep Aslantas
86c585b9e5
vec-ext: fix vec4 min
2017-03-23 19:34:51 +03:00
Recep Aslantas
d6cae07602
vec-ext: fix vec param type
2017-03-23 19:34:36 +03:00
Recep Aslantas
ba0973054e
styles
2017-02-27 16:54:59 +03:00
Recep Aslantas
ec371099bc
doc: add documentations to view, projection functions
2017-02-27 16:48:10 +03:00
Recep Aslantas
a3b66f5b4c
drop platform (OpenGL) specific codes
2017-02-27 16:30:32 +03:00
Recep Aslantas
4462a84f4a
rename _dup (duplicate) to _copy
...
I think _copy is better and COMMON name for duplicating/copying
vector, matrices
2017-02-23 09:57:28 +03:00
Recep Aslantas
595ad42cb8
re-organize folder structure
...
* move SIMD instructions (SSE2, AVX) to arch folder
2017-02-13 12:18:52 +03:00
Recep Aslantas
177bb594fd
make pre-compiled funcs c++ compatible
2017-02-05 16:31:47 +03:00
Recep Aslantas
176f5ccf8e
quat: f-call versions for new quat funcs and fix build
2017-02-05 16:27:47 +03:00
Recep Aslantas
7104fe172c
vec: f-call versions for new vector funcs
2017-02-05 16:24:25 +03:00
Recep Aslantas
642a6d6341
vec: aux func compare two vectors are same or not
2017-02-03 16:02:30 +03:00
Recep Aslantas
124a9587c5
vec: fix rotating vector with affine transform
...
* first normalize rotation vectors because we only want to rotate here
not scaling
2017-02-01 00:11:13 +03:00
Recep Aslantas
d3a9d1bb7a
update README
2017-01-31 15:17:53 +03:00
Recep Aslantas
a40c941a60
style
2017-01-31 15:06:35 +03:00
Recep Aslantas
d784027a8a
vec: project vec3 a onto vec3 b and store
2017-01-31 14:55:21 +03:00
Recep Aslantas
605cbea1d4
vec: implement pow(norm, 2)
...
we can avoid function calls with this func
2017-01-31 14:42:01 +03:00
Recep Aslantas
026750cae5
multiply vec3 with affine transform rotation (mat4)
...
this is may useful for rotate a vec3 with affine transform
2017-01-26 12:25:14 +03:00
Recep Aslantas
2dce066f51
identity quat aux
2017-01-26 12:24:18 +03:00
Recep Aslantas
99c8aeab77
fix mat4_mulv and implement sse2 version
2017-01-24 23:07:14 +03:00
Recep Aslantas
b677a026a2
vector min max util funcs
2017-01-24 16:46:44 +03:00
Recep Aslantas
b39e891e78
make euler order param integer
2017-01-24 16:40:38 +03:00
Recep Aslantas
13a47ca598
improve getting angle between two vector
2017-01-24 16:39:57 +03:00
Recep Aslantas
9ac590bc12
improve rotate vec3 with affine matrix
...
because v and dest may be same vector
2017-01-24 16:36:24 +03:00
Recep Aslantas
e94f1e4880
rotate vec3 with affine matrix
2017-01-17 01:07:52 +03:00
Recep Aslantas
170e2e9fcc
convert PI to float to suppress warnings
2017-01-14 12:22:23 +02:00
Recep Aslantas
68657ec2cc
use float precision for math funcs
2017-01-14 12:04:03 +02:00
Recep Aslantas
b1989bf3c9
is uniform scaled func for mat4
2017-01-11 16:31:07 +02:00
Recep Aslantas
16107c4ba1
fix extract euler angles
2017-01-08 16:35:37 +02:00
Recep Aslantas
072ccf5d63
vec: fix assignment op
2016-12-10 11:30:58 +02:00
Recep Aslantas
880df2cad6
vec: fix equal helper
2016-12-10 11:30:15 +02:00
Recep Aslantas
1eadb38462
resize helper for perspective
...
* when window resized we only change aspect ratio, so projection still
keeps same
2016-12-08 22:06:52 +02:00
Recep Aslantas
9370d60837
util: print ivec3 helper
2016-11-29 22:07:55 +02:00
Recep Aslantas
057fbd9844
vector, quat: rotate vector by axis (RH)
2016-11-29 21:16:07 +02:00
Recep Aslantas
3713ac2599
vector: optimize vec* normalize_to
2016-11-29 17:45:15 +02:00
Recep Aslantas
6e08757605
vector: fix vec4 normalize and optimize vec* normalizations
2016-11-29 17:38:16 +02:00
Recep Aslantas
8d5dc3b2e7
quat: optimize normalize quat
2016-11-29 17:29:36 +02:00
Recep Aslantas
4c2271bfd5
quat: remove _init from quat initializer and provide vector initialiizer
2016-11-29 17:23:28 +02:00
Recep Aslantas
941ddc38ac
remove empty, unused vec func
2016-11-05 13:34:45 +02:00
Recep Aslantas
cd1f1796ac
fix rotate make
2016-11-02 09:56:20 +02:00
Recep Aslantas
b18e9030a4
util: make deg/rad
2016-11-01 17:02:17 +02:00
Recep Aslantas
61eb854c56
fix rigid-body inverse SSE2
2016-11-01 00:02:03 +02:00
Recep Aslantas
ec6c9ae497
improve cam impl
2016-10-30 23:08:44 +02:00
Recep Aslantas
f0547e2535
fix variables
2016-10-30 22:59:47 +02:00
Recep Aslantas
f41fd0cc84
angle between two vector
2016-10-30 21:28:35 +02:00
Recep Aslantas
b99d240425
is equal helper
2016-10-30 19:30:38 +02:00
Recep Aslantas
6ed426ca8b
improve decompose rs
2016-10-30 17:19:35 +02:00
Recep Aslantas
20525907d9
fix axis rotations
2016-10-30 17:17:29 +02:00
Recep Aslantas
28554042d6
improve rotate_ndc
2016-10-30 17:16:01 +02:00
Recep Aslantas
9bf045e026
vec broadcast helper
2016-10-30 16:55:12 +02:00
Recep Aslantas
c0d1cb4031
simd like convenient funcs
2016-10-30 16:52:12 +02:00
Recep Aslantas
f957b73a1d
explicit cast int to enum for c++
2016-10-30 16:39:38 +02:00
Recep Aslantas
6fb8866d93
fix rotate
2016-10-30 16:39:06 +02:00
Recep Aslantas
fb54ccc5ca
remove TODO which is done
2016-10-27 16:05:55 +03:00
Recep Aslantas
75f5efe0bb
pre-compiled version
2016-10-27 01:12:55 +03:00
Recep Aslantas
f4e2cff63b
fix/improve matrix decomposition
2016-10-26 17:23:42 +03:00
Recep Aslantas
55cf08d474
vec4 normalize-to
2016-10-26 17:20:02 +03:00
Recep Aslantas
4ac8eaa1c9
helper for get sign of integer
2016-10-26 14:37:06 +03:00
Recep Aslantas
a410b880b4
decompose scaling sign
2016-10-26 14:36:53 +03:00