mathutils: support for to_2x2 as well as non-square matrices

This commit is contained in:
2020-02-20 15:09:44 +11:00
parent bc86eb1780
commit 1e3ffd1f87
3 changed files with 81 additions and 32 deletions

View File

@@ -74,6 +74,11 @@ PyObject *Matrix_CreatePyObject_cb(PyObject *user,
unsigned char cb_type,
unsigned char cb_subtype) ATTR_WARN_UNUSED_RESULT;
PyObject *Matrix_CreatePyObject_alloc(float *mat,
const unsigned short num_col,
const unsigned short num_row,
PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT;
/* PyArg_ParseTuple's "O&" formatting helpers. */
int Matrix_ParseAny(PyObject *o, void *p);
int Matrix_Parse2x2(PyObject *o, void *p);