diff options
author | epoch <epoch@enzo.thebackupbox.net> | 2022-03-10 15:04:52 +0000 |
---|---|---|
committer | epoch <epoch@enzo.thebackupbox.net> | 2022-03-10 15:04:52 +0000 |
commit | 905e3c77725ecdc3a6658d69c9a2a73a0513b6ce (patch) | |
tree | d2b993290a3fd053cc5631434fcd91f4413039e9 | |
parent | d39509f5500d41782da67d43182658a9643ffedc (diff) | |
download | hackvr-905e3c77725ecdc3a6658d69c9a2a73a0513b6ce.tar.gz hackvr-905e3c77725ecdc3a6658d69c9a2a73a0513b6ce.zip |
matrix things added
-rw-r--r-- | src/math.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -29,4 +29,14 @@ int isLeft(c2_t, c2_t, c2_t); int cn_PnPoly(c2_t, c2_t *, int); int wn_PnPoly(c2_t, c2_t *, int); int epoch_PnPoly(c2_t, c2_t *,int); + +typedef struct { + int h; + int w; + real d[16];//fuck it. I don't want large matrices anyway. could max it at 9 if I really wanted. +} matrix; + +void m_print(matrix m); +matrix m_multiply(matrix a,matrix b); + #endif |