The Matrix is not only a good movie and part of a horrible trilogy, it's a mathematical tool!
This library contains the Matrix datum and host of functions for you to use in your games with matrices. Go nuts.
I haven't added cross products for a few reasons.
1. They're not defined for matrices
2. Determinants are a pain
3. I'm not sure on the practical application of cross products/determinants in DM games where I expect matrices to be used to store non-numerical values.
I'll probably add them for completeness at a later time.
To-Do:
(In no particular order or timeframe)
- Determinants
- Transpose (strictly speaking, matrices are "made" as transpose and converted to what you'd normally see in methods)
- Matrix Copy (so you can copy matrices into bigger matrices)
- Vectors and vector functions
ID:1603499
Jun 17 2014, 10:00 pm
|
|
Nov 8 2014, 4:14 pm
|
|
There's a total revamp in the works. I found a way to reduce runtime by a factor of n.
|