| 1483 | |
| 1484 | template <class T> |
| 1485 | class_<FixedArray<IMATH_NAMESPACE::Matrix44<T> > > |
| 1486 | register_M44Array() |
| 1487 | { |
| 1488 | |
| 1489 | class_<FixedArray<IMATH_NAMESPACE::Matrix44<T> > > matrixArray_class = FixedArray<IMATH_NAMESPACE::Matrix44<T> >::register_("Fixed length array of IMATH_NAMESPACE::Matrix44"); |
| 1490 | matrixArray_class |
| 1491 | .def("__init__", make_constructor(M44Array_constructor<T>)) |
| 1492 | .def("__setitem__", &setM44ArrayItem<T>) |
| 1493 | .def("inverse", &M44Array_inverse<T>, |
| 1494 | "Return M^-1 for each element M.", |
| 1495 | (args("vector"))) |
| 1496 | .def("invert", &M44Array_invert<T>, |
| 1497 | "Perform M^-1 in place for each element M.") |
| 1498 | .def("transpose", &M44Array_transpose<T>, |
| 1499 | "Perform M^T in place for each element M.") |
| 1500 | .def("multDirMatrix", &M44Array_multDirMatrix<T>, |
| 1501 | "Multiply an array of vectors element by element with the matrix array.", |
| 1502 | (args("vector"))) |
| 1503 | .def("multVecMatrix", &M44Array_multVecMatrix<T>, |
| 1504 | "Multiply an array of normals element by element with the matrix array.", |
| 1505 | (args("vector"))) |
| 1506 | .def("__rmul__", &M44Array_rmulVec4<T>) |
| 1507 | .def("__rmul__", &M44Array_rmulVec4Array<T>) |
| 1508 | .def("__rmul__", &M44Array_rmulVec3ArrayT<T>) |
| 1509 | ; |
| 1510 | |
| 1511 | add_comparison_functions(matrixArray_class); |
| 1512 | |
| 1513 | return matrixArray_class; |
| 1514 | } |
| 1515 | |
| 1516 | |
| 1517 | template PYIMATH_EXPORT class_<IMATH_NAMESPACE::Matrix44<float> > register_Matrix44<float>(); |
nothing calls this directly
no test coverage detected