Christopher Lang
a85744430a
Add ivec2 functions
2022-05-17 22:25:10 +01:00
Christopher Lang
d582146d9a
Add ivec3 and ivec4 files
2022-05-17 16:04:47 +01:00
Christopher Lang
4c85b970a9
Add ivec2 files
2022-05-16 22:41:04 +01:00
Maxim Kasyanenko
b7178749ee
Forgot to add the dynamic implementation file itself
2021-11-08 17:53:27 -08:00
Recep Aslantas
8427d02a9b
pick matrix helper (aka gluPickMatrix)
2021-08-16 16:53:46 +03:00
Recep Aslantas
a2bd00df32
fix including headers, and suppress warnings
2021-08-16 15:51:52 +03:00
Recep Aslantas
29c3837672
implement project zo
2021-08-16 14:16:43 +03:00
Recep Aslantas
9ed4e41afd
call version for clipspace-project
2021-08-16 01:08:11 +03:00
Sundaram Ramaswamy
b5802b99b2
Compute quaternion rotating a vector into another
...
Both `vec3` inputs should be of unit length; returns a unit quaternion.
2021-06-10 23:10:54 +05:30
Tai Chi Minh Ralph Eastwood
8ddb5d5740
build: fix incorrect include paths for libcglm
2021-05-14 16:58:48 +02:00
Tai Chi Minh Ralph Eastwood
7065011bf3
clipspace: add initial implementations LH, RH and NO, ZO
...
Add the initial implementations of the left-handed and right-handed
coordinate systems as well as clipspace depth values of [-1, 0] and
[0, 1].
2021-05-13 23:22:58 +02:00
michaelg
c013bd462c
Add LH & RH_NO perspective functions
...
This commit adds functions `glm_perspective_lh_no` and
`glm_perspective_rh_no` to the code. Unit tests are added and this
commit follows the new pattern of adding the a new file per
coordinate-system and clip-space tuple.
. Makefile.am updated
. removed test/glm_cmp project stub
. unit tests include naive implementations to as well as magic number
ref-data generated by the corresponding GLM functions.
No tests run yet on Windows or Mac.
2021-05-13 23:18:05 +02:00
michaelg
b3a18b8a15
Add glm_perspective_rh_zo function + tests
...
This commit adds the RH/ZO perspective function. It does so in the new
file `cam_rh_zo.h` and further refactors the LH variant into new file
`cam_lh_zo.h`. This creates some churn in the tests and configuration
files as new test files were added as well, and all these changes found
their way into the build files.
Tests passing on Linux.
2021-05-13 23:18:05 +02:00
Recep Aslantas
a242d83805
style: rename nearVal, farVal to nearZ and farZ
2021-05-08 22:42:44 +03:00
Sundaram Ramaswamy
8ce45b4303
Add call and struct interfaces
2021-05-07 00:35:20 +05:30
Serhii Mumriak
2e5257bcc1
Updated 160 PR according review comments.
2020-09-07 17:09:37 -07:00
Recep Aslantas
b133c2e3e3
2d: add rotate2d and its friends
2020-07-31 15:11:00 +03:00
Recep Aslantas
0127d30fa8
2d: add scale2d and its friends
2020-07-31 13:49:33 +03:00
Recep Aslantas
bb751d32ca
2d: add translate2d and its friends
2020-07-31 11:40:52 +03:00
Recep Aslantas
099522ada3
fix LICENSE alignments
2020-05-02 22:32:57 +03:00
Recep Aslantas
fefc3dc32d
io: print has been maden optional to DEBUG or to CGLM_DEFINE_PRINTS
2020-04-30 23:38:27 +03:00
Uwila
339adab783
Align variables in ray code
2020-04-03 17:56:53 +02:00
Uwila
c67f7a14a1
Add ray-triangle intersection check
2020-04-02 14:28:28 +02:00
Recep Aslantas
43ae3b332a
add tests for vec2 and its call version
2020-02-24 10:06:19 +03:00
Recep Aslantas
8a068c3291
Merge branch 'master' into vec2_mat2
2020-02-23 13:10:36 +03:00
Recep Aslantas
2278eba93c
quat: fix quat_for and quat_forp implementations
2020-02-20 23:37:35 +03:00
Recep Aslantas
2ea9308361
quat: fix glmc_quat_normalize()
2019-09-25 07:41:29 +03:00
Recep Aslantas
dcf5b5c1c4
vec: fix min/max for compiled vec3
2019-09-24 17:01:56 +03:00
Recep Aslantas
7b25cbb9cb
vec: fix min/max for compiled vec3
2019-09-22 23:25:33 +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
b46a4ccee5
Merge branch 'vec2_mat2' of https://github.com/recp/cglm into vec2_mat2
2019-09-01 17:12:12 +03:00
Recep Aslantas
5da864f345
Merge branch 'master' into vec2_mat2
2019-09-01 17:10:28 +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
d86f5df776
vec: call version for vec2
2019-08-30 22:56:20 +03:00
Recep Aslantas
8cb6fa792c
Merge branch 'master' into vec2_mat2
2019-08-30 21:34:23 +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
Recep Aslantas
ef89cd7236
Merge branch 'master' into vec2_mat2
2019-08-22 15:16:35 +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
5bf5ceeb40
win: remove optional DLLMain entry point
2019-07-17 17:26:14 +03:00
Recep Aslantas
a4c7c5e1ba
implement call version for mat2
2019-06-21 23:17:08 +03:00
Recep Aslantas
b9de553f23
quat: fix glm_quat_axis axis parameter type
2019-06-03 12:01:14 +03:00
Recep Aslantas
bb8ff25752
Revert "mark readonly parameters as const"
2019-04-30 08:19:07 +03:00
Recep Aslantas
392565f920
mark readonly parameters as const (continue)
2019-04-28 21:48:19 +03:00
Recep Aslantas
2b1eece9ac
mat3: add rmc for mat3
2019-02-13 10:12:49 +03:00
Recep Aslantas
60cfc87009
remove bezier_solve for now
2019-02-02 15:30:05 +03:00
Recep Aslantas
7848dda1dd
curve: cubic hermite intrpolation
2019-01-29 22:17:44 +03:00
Recep Aslantas
c22231f296
curve: de casteljau implementation for solving cubic bezier
2019-01-28 15:52:42 +03:00