summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@enzo.thebackupbox.net>2022-03-10 15:04:52 +0000
committerepoch <epoch@enzo.thebackupbox.net>2022-03-10 15:04:52 +0000
commit905e3c77725ecdc3a6658d69c9a2a73a0513b6ce (patch)
treed2b993290a3fd053cc5631434fcd91f4413039e9
parentd39509f5500d41782da67d43182658a9643ffedc (diff)
downloadhackvr-905e3c77725ecdc3a6658d69c9a2a73a0513b6ce.tar.gz
hackvr-905e3c77725ecdc3a6658d69c9a2a73a0513b6ce.zip
matrix things added
-rw-r--r--src/math.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/math.h b/src/math.h
index 13f4d63..f12a391 100644
--- a/src/math.h
+++ b/src/math.h
@@ -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