alankligman/gladius.math — Issue #11: Speed of multi-matrix functions
Author: secretrobotron
Created: 2012-01-17 21:35:30+00:00
State: open

It looks like functions like `mat4.multiply` take an array as their first argument, and a result as their second. So, multiplying two matrices together means doing something like this:

```
mat4.multiply( [ m1, m2 ], result );
```

Logically, that's fine, but the creation of an array containing two matrices is slow compared to an inline function. Is there something like this that I'm missing?

Ideally, I'd like to use something like this:

```
mat4.multiply2( m1, m2, result );
```

We can even create these when the library boots up to allow for function which accommodate 2-N matrices.