Developer Documentation
|
The matrix type Matrix4x4 is mapped to python to handle matrix operations.
The integrated conversion can map the C++ Matrix4x4 type to and from a tuple, a list or a numpy array. The preferred choice is the numpy array. Tuple and list have to contain 16 elements. A numpy array has to have a dimension of 2, with 4x4 elements. All data is assumed to be given column major. Therefore the first for elements define the first column and so on.
Creating a matrix in python is the done like in the following example:
The conversion from C++ to python will always create a numpy array on the python side.