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 |
|
Recep Aslantas
|
f2beb49bf7
|
helper to get new euler order
|
2016-10-26 13:26:17 +03:00 |
|
Recep Aslantas
|
45254972f0
|
euler angles to matrix from given order
|
2016-10-26 12:07:10 +03:00 |
|
Recep Aslantas
|
086c1cf326
|
fix euler: use ExEyEz instead of RxRyRz
* implement other sequences
* always use vec3 for store/get angles
|
2016-10-26 11:06:48 +03:00 |
|
Recep Aslantas
|
005a6f55d2
|
fix euler angle val
|
2016-10-25 12:24:42 +03:00 |
|
Recep Aslantas
|
41cfa78442
|
build rot using euler angles vector [x, y, z]
|
2016-10-24 22:07:13 +03:00 |
|
Recep Aslantas
|
025d7f4267
|
change pitch and yaw order
|
2016-10-24 21:57:46 +03:00 |
|
Recep Aslantas
|
27dbdaad12
|
euler angles return angles as vector [x, y, z]
|
2016-10-24 21:55:46 +03:00 |
|
Recep Aslantas
|
ffe9250a28
|
improve euler angles
|
2016-10-24 21:46:43 +03:00 |
|
Recep Aslantas
|
e8cb10de72
|
improve extracting euler angles
|
2016-10-24 21:42:40 +03:00 |
|
Recep Aslantas
|
baf60f0a31
|
euler xyz: change param order and rm comment..
|
2016-10-24 16:00:04 +03:00 |
|
Recep Aslantas
|
ecc574acb4
|
update license
|
2016-10-24 14:05:05 +03:00 |
|
Recep Aslantas
|
cb0239503f
|
extract euler angles from matrix (xyz)
|
2016-10-24 14:01:21 +03:00 |
|
Recep Aslantas
|
f8bd200d40
|
euler angles zyx
|
2016-10-24 14:00:04 +03:00 |
|
Recep Aslantas
|
7e637d7c25
|
fiz euler zxy
|
2016-10-24 13:55:14 +03:00 |
|
Recep Aslantas
|
05c76fa992
|
fix euler angle
|
2016-10-24 13:50:14 +03:00 |
|
Recep Aslantas
|
0ff0579456
|
fix euler matrix
|
2016-10-23 23:27:57 +03:00 |
|
Recep Aslantas
|
a6254cca47
|
affine transform decomposition T R S
|
2016-10-23 15:22:47 +03:00 |
|
Recep Aslantas
|
5621fa1ab7
|
fix ortho
nearVal, farVal
Specify the distances to the nearer and farther depth clipping planes.
****These values are negative if the plane is to be behind the
viewer.***
https://www.opengl.org/sdk/docs/man2/xhtml/glOrtho.xml
|
2016-10-20 02:39:24 +03:00 |
|
Recep Aslantas
|
f4b0d2bdde
|
ma3 swap rows/columns
|
2016-10-16 20:45:58 +03:00 |
|
Recep Aslantas
|
bb3067ebfb
|
mat4 swap rows/columns
|
2016-10-16 20:44:13 +03:00 |
|
Recep Aslantas
|
30004910f6
|
move io funcs to io header, use util for another purpose
|
2016-10-16 16:05:46 +03:00 |
|
Recep Aslantas
|
6a1dbf1947
|
update readme
|
2016-10-14 12:05:27 +03:00 |
|
Recep Aslantas
|
bdcea86ac6
|
move types to individual header
* include cglm-common to all headers
|
2016-10-13 23:44:02 +03:00 |
|
Recep Aslantas
|
34eae7422b
|
remove _mat4_ prefix from uniform
|
2016-10-13 18:16:11 +03:00 |
|
Recep Aslantas
|
62c0fa377d
|
remove _affine_ prefix from affine mul and rigid-body inverse
|
2016-10-13 18:13:06 +03:00 |
|
Recep Aslantas
|
46c84781f6
|
rename glm_yaw_pitch_roll to glm_euler
|
2016-10-13 18:06:48 +03:00 |
|
Recep Aslantas
|
e2f1c7eb6a
|
fix euler zxy
|
2016-10-13 17:00:48 +03:00 |
|
Recep Aslantas
|
551175333f
|
fix yaw-pitch-roll
|
2016-10-13 16:47:03 +03:00 |
|
Recep Aslantas
|
2c6b257a82
|
implement euler angles zxy, zyx (yaw-pitch-roll)
|
2016-10-13 11:06:14 +03:00 |
|
Recep Aslantas
|
bb45a77d64
|
remove comment
|
2016-10-12 12:21:04 +03:00 |
|
Recep Aslantas
|
06393513ca
|
mat3 determinant
|
2016-10-12 12:20:10 +03:00 |
|
Recep Aslantas
|
90259e673f
|
full inverse of mat3
|
2016-10-12 12:15:10 +03:00 |
|
Recep Aslantas
|
15663fcb26
|
rm redefinition glGetIntegerv for win32
|
2016-10-12 11:22:38 +03:00 |
|
Recep Aslantas
|
c08ce6a5ee
|
rigid-body matrix inverse
|
2016-10-12 00:00:39 +03:00 |
|
Recep Aslantas
|
b7ed89fcf0
|
mat3 scale
|
2016-10-11 18:27:31 +03:00 |
|
Recep Aslantas
|
14ee37b9c5
|
mat4 pick transposed mat3
|
2016-10-11 18:27:13 +03:00 |
|
Recep Aslantas
|
80c6c0a28b
|
drop manual simd impl from mat3
|
2016-10-11 18:26:07 +03:00 |
|
Recep Aslantas
|
3c26a7f820
|
mat4: precise matrix inverse
* TODO: duplicated code!
|
2016-10-11 14:22:25 +03:00 |
|
Recep Aslantas
|
b2e8e7c77b
|
vec: flip sign
|
2016-10-11 14:02:49 +03:00 |
|
Recep Aslantas
|
21f62ba9ab
|
insert mat3 to mat4 upper-left
|
2016-10-11 13:58:30 +03:00 |
|
Recep Aslantas
|
822923a035
|
move mat3 print to util and insert mat3 to default header
|
2016-10-11 12:04:54 +03:00 |
|
Recep Aslantas
|
5344599ae4
|
pick mat3 from mat4
|
2016-10-11 00:15:57 +03:00 |
|
Recep Aslantas
|
77ed5d389d
|
mat3 mul by vec3
|
2016-10-10 17:44:17 +03:00 |
|
Recep Aslantas
|
0cbfd3cd3b
|
mat4 pure style
|
2016-10-10 17:40:49 +03:00 |
|
Recep Aslantas
|
dc85a6c3ca
|
mat3 transpose
|
2016-10-10 17:38:56 +03:00 |
|
Recep Aslantas
|
6390367476
|
affine mat mul
|
2016-10-10 12:09:42 +03:00 |
|
Recep Aslantas
|
af52f40114
|
fix pure affine mul and some style
|
2016-10-10 10:31:50 +03:00 |
|
Recep Aslantas
|
5b5dbcc15c
|
optimize affine transform matrices
* reduce some multiplications/additions for transformations matrices
|
2016-10-10 00:08:36 +03:00 |
|
Recep Aslantas
|
3ffca7a733
|
use native types instead GL*
|
2016-10-09 18:08:59 +03:00 |
|
Recep Aslantas
|
2ebdfaeeaf
|
helper ortho proj
|
2016-10-09 18:06:52 +03:00 |
|
Recep Aslantas
|
a6f96de292
|
move platform specific functions to platform header
|
2016-10-09 17:57:55 +03:00 |
|
Recep Aslantas
|
1f12adbfae
|
default ortho projection
|
2016-10-09 17:48:50 +03:00 |
|
Recep Aslantas
|
4da42276f5
|
msvc compatibility
|
2016-10-09 14:38:53 +03:00 |
|
Recep Aslantas
|
751391c8ff
|
fix ortho
|
2016-10-09 14:08:08 +03:00 |
|
Recep Aslantas
|
bc8cede3d8
|
helper: default perspective
|
2016-10-08 16:37:56 +03:00 |
|
Recep Aslantas
|
c428b79f98
|
move platform specific codes to platform header
|
2016-10-08 16:37:20 +03:00 |
|
Recep Aslantas
|
a85bf47683
|
mat3 multiplication
|
2016-10-08 14:15:31 +03:00 |
|
Recep Aslantas
|
78e4e867eb
|
unaligned matrix duplication
|
2016-10-06 16:54:08 +03:00 |
|
Recep Aslantas
|
1b41c3d52a
|
add braces to mat initializer
|
2016-10-05 12:14:27 +03:00 |
|
Recep Aslantas
|
02c6ba5b19
|
update license
|
2016-10-03 16:51:14 +03:00 |
|
Recep Aslantas
|
846c4d3c73
|
affine rotation
|
2016-10-03 16:29:48 +03:00 |
|
Recep Aslantas
|
5a24b9fcd5
|
fix build rotate
|
2016-10-03 16:18:54 +03:00 |
|
Recep Aslantas
|
a23f238c60
|
fix init rotation matrix
|
2016-10-03 12:57:55 +03:00 |
|
Recep Aslantas
|
cd5cee615c
|
build rotation matrix
|
2016-10-03 11:40:40 +03:00 |
|
Recep Aslantas
|
098a930d9f
|
make glm_vec4_dup3 inline
|
2016-10-02 00:13:18 +03:00 |
|
Recep Aslantas
|
ea6f12d90a
|
vector [pure] documentation
|
2016-09-29 10:25:33 +03:00 |
|
Recep Aslantas
|
1ab4329013
|
style
|
2016-09-29 10:02:58 +03:00 |
|