#include #include #include #include #include "transform.h" int kai_parse_matrix(ka_matrix_t *m, ezxml_t tag) { if (strcmp("matrix", ezxml_name(tag)) != 0) return -1; char *str = ezxml_txt(tag); char *end; int i; for (i=0; i<16; i++) { (*m)[i] = strtod(str, &end); str = end; } return 0; }