Commit Graph

47 Commits

Author SHA1 Message Date
Recep Aslantas
065f93ab3c update docs, drop scale1 2018-04-18 14:30:44 +03:00
Recep Aslantas
d648f5772d affine: drop rotate_ndc functions 2018-04-18 10:57:35 +03:00
Recep Aslantas
33e951fe2e implement rotate_at for quat and provide make version 2018-04-17 12:17:04 +03:00
Recep Aslantas
c63c6c90ac implement rotate_at 2018-04-17 11:12:18 +03:00
Recep Aslantas
a2792178db add missing call funcs for affine transforms 2018-04-17 11:07:57 +03:00
Recep Aslantas
7f7007574b vec: implement muladd's scalar version 2018-04-13 22:30:44 +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
de55850136 add call version of vector extensions 2018-04-11 12:31:29 +03:00
Recep Aslantas
51278b26b4 quat: update call versions of quaternion 2018-04-11 11:19:13 +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
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
3dc93c56e8 convert quaterinon to xyzw order (part 1) 2018-04-09 18:49:12 +03:00
Recep Aslantas
257c57d41f mat4 to quaternion 2018-04-07 19:46:46 +03:00
Recep Aslantas
9b8748acc4 quat: quaternion to mat3 2018-04-07 13:27:40 +03:00
Recep Aslantas
ae06c51746 improve glm_mat4_mulN for non-DEBUG environment 2018-04-07 13:22:44 +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
4298211795 euler: fix extracting XYZ angles 2018-03-27 12:14:12 +03:00
Recep Aslantas
48b7b30e42 add call version for clamp 2018-03-22 21:18:08 +03:00
Recep Aslantas
780179ff0d fix unproject 2018-03-08 22:29:10 +03:00
Recep Aslantas
29996d0bdd add unproject function 2018-03-08 13:02:33 +03:00
Recep Aslantas
8b2c74b0cc bounding box 2018-01-18 16:36:58 +03:00
Recep Aslantas
8bcd6bd077 frustum: make clipspace coords configurable
* now users can override clip space coords
* add more desc to header
* add call version for _corners_at
2018-01-14 11:03:03 +03:00
Recep Aslantas
2349bbff31 move frustum related stuff to frustum header
* create helpers macro which defines corner index
* func for get bounding box frustum
* add missing source to make file
* add more desc to glm_frustum_corners
2018-01-12 15:21:36 +03:00
Recep Aslantas
2b7994778d fix lib call version of look_anyup 2018-01-12 12:54:33 +03:00
Recep Aslantas
50c23ce1c0 add missing definitions, fix initizlizing vector 2018-01-10 22:42:34 +03:00
Recep Aslantas
eaf45e489d view frustum center 2017-12-31 17:17:39 +03:00
Recep Aslantas
2d0a3ad828 use frustum namespace for frustum specific funcs 2017-12-30 18:05:11 +03:00
Recep Aslantas
99669a21a4 move extracting planes to camera header
* since it related to view frustum / camera it should be in thie header or separate header called frustum.h
* update LICENSE to add authors of algorithm
2017-12-30 13:55:17 +03:00
Recep Aslantas
c98340d9d2 exracting planes 2017-12-30 12:18:32 +03:00
Recep Aslantas
63eaee5049 vec: implement min and max 2017-12-17 16:55:04 +03:00
Recep Aslantas
9fe48b34a7 inverse (opposite) of vectors 2017-10-27 00:20:41 +03:00
Recep Aslantas
9d61668e04 re-organise files, remove cglm prefix from file to make them more clean 2017-07-11 18:05:10 +03:00
Recep Aslantas
f6959b99c6 fix pre-compiled vector header and suppress warnings 2017-06-15 20:06:00 +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
fb444203b6 fix inlining exported function 2017-05-21 01:29:10 +03:00
Recep Aslantas
ef5a8549e2 add missing file for windows 2017-04-22 15:20:38 +03:00
Recep Aslantas
e2fcf80e48 build for windows (dll) 2017-04-22 14:59:18 +03:00
Recep Aslantas
cb6d5c1f7e center point of to vectors 2017-04-15 02:05:06 +03:00
Recep Aslantas
bf18ca647e distance between two vectors 2017-04-09 21:14:26 +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
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
75f5efe0bb pre-compiled version 2016-10-27 01:12:55 +03:00