Matrices

by Lugia319
DM doesn't have default matrices, now it does. [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Lugia319.Matrices##version=3

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Lugia319.Matrices##version=3

66 downloads
Version 1.1
Date added: Jun 17 2014
Last updated: Jun 27 2014
0 fans
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

Comments

Lugia319: (Nov 8 2014, 3:14 pm)
There's a total revamp in the works. I found a way to reduce runtime by a factor of n.