gl-matrix icon indicating copy to clipboard operation
gl-matrix copied to clipboard

any chance to get bespoke size matrices?

Open giordi91 opened this issue 9 years ago • 1 comments

Hi there, I see that the lib supports square matrices only, which is great but you think will be ever possible to get a generic size matrix class? I was computing mesh tangents for normal maps and I needed to do a 2x2 * 2x3 which is not big deal i did it manually but would be nice to have it supported.

giordi91 avatar Jul 28 '15 17:07 giordi91

I don't think you'd get anything with an unrolled loop. Otherwise, it's not too bad to implement a generic matrix multiply, but it's going to have loops, so I don't think they'd want mat4.multiply to be built on top of the generic version.

nickdesaulniers avatar Aug 07 '15 16:08 nickdesaulniers