lkang2 / glmatrix

Automatically exported from code.google.com/p/glmatrix
0 stars 0 forks source link

Include vec4 math. #48

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
vec4 objects are handy for storing points with the W component, as well as 
vertex color, and other things.

you support vec4 in the mat4 functions, but dont specifically declare the vec4's

Original issue reported on code.google.com by jun...@gmail.com on 29 Mar 2011 at 12:45

GoogleCodeExporter commented 8 years ago
i also don know how to change the type to anything other than a defect ... >.<

Original comment by jun...@gmail.com on 29 Mar 2011 at 12:47

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
one more thing, (might be the last, i hope)

Mat4 multiplying vec4 is only half correct... it depends on if you need to 
multiply the vec4 as row vector [1,1,1,1] or column vector [1,1,1,1]T, and on 
which side of the matrix.

you can get around it by transposing the matrix, multiplying, then transposing 
the result, but that is 2 extra unnecessary steps...

just wanted to bring that up.

Original comment by jun...@gmail.com on 29 Mar 2011 at 1:52

GoogleCodeExporter commented 8 years ago

Original comment by Tojiro@gmail.com on 24 Apr 2011 at 6:45