Matrix4
Overview
Matrix4 is a class in Aspose.3D FOSS for Python.
Matrix4.transpose returns a new Matrix4 that is the transpose of this matrix.
This class provides 13 methods for working with Matrix4 objects in Python programs.
Available methods include: __init__, concatenate, decompose, get_identity, inverse, normalize, rotate, rotate_from_euler, scale, set_trs, to_array, translate, and 1 additional methods.
All exported members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: determinant, m00, m01, m02, m03, m10, and 11 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
m00 | float | Read | Gets the m00. |
m01 | float | Read | Gets the m01. |
m02 | float | Read | Gets the m02. |
m03 | float | Read | Gets the m03. |
m10 | float | Read | Gets the m10. |
m11 | float | Read | Gets the m11. |
m12 | float | Read | Gets the m12. |
m13 | float | Read | Gets the m13. |
m20 | float | Read | Gets the m20. |
m21 | float | Read | Gets the m21. |
m22 | float | Read | Gets the m22. |
m23 | float | Read | Gets the m23. |
m30 | float | Read | Gets the m30. |
m31 | float | Read | Gets the m31. |
m32 | float | Read | Gets the m32. |
m33 | float | Read | Gets the m33. |
determinant | float | Read | Gets the determinant. |
Methods
| Signature | Description |
|---|---|
__init__() | |
transpose() → 'Matrix4' | Returns a new Matrix4 that is the transpose of this matrix |
concatenate(m2: 'Matrix4') → 'Matrix4' | Multiplies this matrix by another Matrix4 (m2) and returns the resulting Matrix4 |
normalize() → 'Matrix4' | Returns a Matrix4 whose rotation part is normalized to unit length |
inverse() → 'Matrix4' | Returns a new Matrix4 representing the inverse of this matrix |
decompose(translation, scaling, rotation) | Extracts translation, scaling, and rotation components into the given variables |
set_trs(translation, rotation, scale) | Sets the trs value. |
to_array() | |
get_identity() → 'Matrix4' | Returns the identity. |
translate(tx, ty, tz) → 'Matrix4' | Creates a translation matrix with offsets tx, ty, tz and returns it |
scale(sx, sy, sz) → 'Matrix4' | Creates a scaling matrix with factors sx, sy, sz and returns it |
rotate_from_euler(rx, ry, rz) → 'Matrix4' | |
rotate(angle, axis) → 'Matrix4' | Creates a rotation matrix rotating by angle around the given axis vector |