summaryrefslogtreecommitdiff
path: root/src/transform.h
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-11-27 13:41:14 -0600
committersanine <sanine.not@pm.me>2022-11-27 13:41:14 -0600
commit21e8b8ad389dda55d92af4af1fd22aac657074b4 (patch)
tree69548b7c1f2d0aeaeb03a68b59eee278fefe860b /src/transform.h
parent6053d87cd02cd5aec9da5bc46039ec4cca181dec (diff)
add matrix multiplication
Diffstat (limited to 'src/transform.h')
-rw-r--r--src/transform.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/transform.h b/src/transform.h
index f8dc2ad..db582ac 100644
--- a/src/transform.h
+++ b/src/transform.h
@@ -5,6 +5,12 @@
#include <ezxml.h>
+/* fill a ka_matrix_t with the identity matrix */
+int kai_identity(ka_matrix_t *m);
+
+/* multiply two matrices together */
+int kai_multiply(ka_matrix_t *dest, ka_matrix_t A, ka_matrix_t B);
+
/* parse a <matrix> tag into a ka_matrix_t */
int kai_parse_matrix(ka_matrix_t *m, ezxml_t tag);