From 905e3c77725ecdc3a6658d69c9a2a73a0513b6ce Mon Sep 17 00:00:00 2001 From: epoch Date: Thu, 10 Mar 2022 15:04:52 +0000 Subject: matrix things added --- src/math.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') 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 -- cgit v1.2.3