aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add eprintf style module makefile.HEADmasterTomasz Kramkowski2018-04-201-0/+3
|
* Refactor linmath.h for use in faqe.Tomasz Kramkowski2018-04-201-249/+262
|
* Merge pull request #24 from adrianbroher/masterdatenwolf2016-02-071-0/+12
|\ | | | | Add vec{2,3,4} minimum and maximum functions
| * Add vec{2,3,4} component wise minimum and maximum functionsMarcel Metz2016-01-261-0/+12
|/
* Merge pull request #22 from t-mw/quat_mul_vec3_fixdatenwolf2015-09-231-3/+4
|\ | | | | Fix bug in quat_mul_vec3 caused by reuse of u and t in 'vec3_mul_cross'
| * Fix bug in quat_mul_vec3 caused by reuse of u and t in 'vec3_mul_cross'Tobias Mansfield-Williams2015-09-231-3/+4
|/ | | | | | | | | | | | | | | | | | The new implementation of `quat_mul_vec3` introduced in commit 06b68f6caa214d9f98ada28db837c21e08ed2927 incorrectly calculates 't' and 'u'. The problem's caused by the variables being used as both input and output to `vec3_mul_cross`, which causes the variables to be corrupted as the cross product is taken. Unlike with the simple vector operations, input variables to vec3_mul_cross must be distinct from the output variable. ``` static inline void vec3_mul_cross(vec3 r, vec3 const a, vec3 const b) { r[0] = a[1]*b[2] - a[2]*b[1]; r[1] = a[2]*b[0] - a[0]*b[2]; r[2] = a[0]*b[1] - a[1]*b[0]; } ```
* fixed out-of-bounds write in quat_mul_vec3 by replacing with a more elegant ↵Wolfgang Draxinger2015-07-311-6/+16
| | | | method
* Merge pull request #14 from PolyFloyd/quat_rotatedatenwolf2015-05-261-0/+8
|\ | | | | Added quat_rotate
| * Added quat_rotatePolyFloyd2014-12-101-0/+8
| |
* | Merge pull request #18 from dv343/masterdatenwolf2015-01-261-2/+4
|\ \ | | | | | | In-place matrix multiplication
| * | In-place matrix multiplicationDavid M2015-01-251-2/+4
| | | | | | | | | | | | | | | | | | | | | In-place matrix multiplication (mat4x4_mul(m1, m1,m2)) and the operations that depends on it (mat4x4_rotate...) do not work. I think that this feature will be appreciated, even if it has a performance cost.
* | | Merge pull request #17 from dv343/masterdatenwolf2015-01-251-9/+9
|\| | | | | | | | Warning removal
| * | Removed extra ';' after macrosDavid M2015-01-241-3/+3
| | | | | | | | | | | | This removes gcc and clang warnings (src/linmath.h:44:24: warning: extra ';' outside of a function [-Wextra-semi])
| * | Made parameters of generic vector functions constTim Malte Gräfje2015-01-081-6/+6
|/ / | | | | | | where applicable. This fixes all warnings that gcc with -Wall gave me.
* / generic vec type generation macroWolfgang Draxinger2014-12-111-72/+44
|/
* mat4x4_mul_quat in its current form can be used only for orthogonal ↵Wolfgang Draxinger2014-09-231-1/+4
| | | | matrices, renamed to mat4x4o_mul_quat
* fixed an issue that popped up in StackOverflow, thanks @kluelessWolfgang Draxinger2014-09-231-3/+3
|
* fixed missinc w-column copy in mat4x4_scale_anisoWolfgang Draxinger2014-08-201-10/+14
|
* fixed a stupid mistake in mat4x4_rotateWolfgang Draxinger2014-08-051-7/+33
|
* Merge branch 'learnopengles/dev' into devWolfgang Draxinger2013-11-111-1/+1
|\
| * merged learnopengles and aransentin contributionsWolfgang Draxinger2013-11-111-137/+147
| |\
| * \ Merge branch 'dev' into learnopengles/devWolfgang Draxinger2013-11-111-1/+1
| |\ \
| * | | Fix bug with mat4x4_translate_in_place introduced in ↵Learn OpenGL ES2013-11-071-1/+1
| | | | | | | | | | | | | | | | 34cd9df850faf0bf6b9182b3500406351ad68ae0
| * | | Fix another instance of sizeof ptr instead of array.Learn OpenGL ES2013-11-071-1/+1
| | | |
| * | | Fix bug with invert matrix (was copying one float instead of all floats).Learn OpenGL ES2013-11-071-1/+1
| | | |
* | | | Merge branch 'aransentin/master' into devWolfgang Draxinger2013-11-111-137/+147
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/|
| * | updated lots of thingsAransentin2013-10-241-137/+147
| |/
* / LICENCE file adjustedWolfgang Draxinger2013-11-111-1/+1
|/
* linmath.h uses radians for everything -- adjusted contributed perspective ↵Wolfgang Draxinger2013-10-211-4/+4
| | | | function
* minor stylistic changes, TODO comments addedWolfgang Draxinger2013-10-211-33/+37
|
* fixed bug in perspective introduced by contribution made by learnopenglesWolfgang Draxinger2013-10-211-3/+3
|
* fixed some embarrassing syntax and semantic mistakesWolfgang Draxinger2013-10-201-31/+20
|
* changed matrix in place to use mat4x4_row extraction and vec4_inner productWolfgang Draxinger2013-10-121-5/+16
|
* Refactor mat4x4_look_at to reuse internal functions and data types.Learn OpenGL ES2013-09-191-42/+21
|
* Update 'const' coding style.Learn OpenGL ES2013-09-191-2/+2
|
* Update indentationLearn OpenGL ES2013-09-191-5/+5
|
* Add mat4x4_translate_in_place(), mat4x4_perspective(), and mat4x4_look_at().Learn OpenGL ES2013-09-181-0/+95
|
* minor fix in quat_from_mat4x4 with huge impactWolfgang Draxinger2013-01-291-2/+3
|
* fixed some bugs in mat4x4_rotate and mat4x4_orthoWolfgang Draxinger2013-01-052-26/+24
|
* updated licence clause to WTFPL, adding legal safety for me and the users.Wolfgang Draxinger2012-09-302-1/+19
|
* fixed several bugs in matrix processingWolfgang Draxinger2012-09-301-4/+10
|
* fixed mat4x4_mul and frustum functions. mat4x4_rotate still needs fixingWolfgang Draxinger2012-08-111-11/+16
|
* fixed vec<n>_length vs. vec<n>_len, rotation matrix intermediary rotscale ↵Wolfgang Draxinger2012-03-161-3/+3
| | | | matrix element WW=1 now
* README updated, LICENCE addedWolfgang Draxinger2012-01-212-0/+13
|
* inplace mat4x4_invert now possibleWolfgang Draxinger2012-01-071-1/+3
|
* fixesWolfgang Draxinger2012-01-061-40/+52
|
* linmath.h -- added code for ortho projection matrix, fixed some copynpaste ↵Wolfgang Draxinger2012-01-061-5/+18
| | | | typos in frustum
* added linmath.hWolfgang Draxinger2012-01-061-0/+411
|
* first commitWolfgang Draxinger2012-01-061-0/+0