From 7c47f23ee92afa07c748700f1de22fd8b8ccf967 Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 10 Dec 2022 19:12:31 -0600 Subject: refactor: remove node.* and util.* and move 3rdparty libs into separate directory --- src/transform/transform.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/transform/transform.h (limited to 'src/transform/transform.h') diff --git a/src/transform/transform.h b/src/transform/transform.h new file mode 100644 index 0000000..db582ac --- /dev/null +++ b/src/transform/transform.h @@ -0,0 +1,26 @@ +#ifndef KALMIA_TRANSLATE_H +#define KALMIA_TRANSLATE_H + +#include +#include + + +/* 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 tag into a ka_matrix_t */ +int kai_parse_matrix(ka_matrix_t *m, ezxml_t tag); + +/* parse a tag into a ka_matrix_t */ +int kai_parse_rotate(ka_matrix_t *m, ezxml_t tag); + +/* parse a tag into a ka_matrix_t */ +int kai_parse_scale(ka_matrix_t *m, ezxml_t tag); + +/* parse a tag into a ka_matrix_t */ +int kai_parse_translate(ka_matrix_t *m, ezxml_t tag); + +#endif -- cgit v1.2.1