Matrix4
Overview
Matrix4 is a class in Aspose.3d for Python.
Matrix4.transpose returns a new matrix that is the transpose of this matrix.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
m00 | float | Read | Is the element in row 0, column 0 of the matrix |
m01 | float | Read | |
m02 | float | Read | |
m03 | float | Read | |
m10 | float | Read | |
m11 | float | Read | Is the element in row 1, column 1 of the matrix |
m12 | float | Read | |
m13 | float | Read | |
m20 | float | Read | |
m21 | float | Read | |
m22 | float | Read | Is the element in row 2, column 2 of the matrix |
m23 | float | Read | |
m30 | float | Read | |
m31 | float | Read | |
m32 | float | Read | |
m33 | float | Read | Is the element in row 3, column 3 of the matrix |
determinant | float | Read | Is the scalar determinant value of the matrix |
Methods
| Signature | Description |
|---|---|
__init__() | |
transpose() → 'Matrix4' | Returns a new matrix that is the transpose of this matrix |
concatenate(m2: 'Matrix4') → 'Matrix4' | Returns a matrix that combines this matrix with the given matrix m2 |
normalize() → 'Matrix4' | Returns a matrix whose rotation part is orthonormalized |
inverse() → 'Matrix4' | Returns the inverse of this matrix |
decompose(translation, scaling, rotation) | Extracts translation, scaling, and rotation into the supplied arguments |
set_trs(translation, rotation, scale) | Sets this matrix from translation, rotation, and scale parameters |
to_array() | Returns the matrix elements as a flat list or array |
get_identity() → 'Matrix4' | Returns a new identity matrix |
translate(tx, ty, tz) → 'Matrix4' | Returns a matrix with a translation of (tx, ty, tz) applied |
scale(sx, sy, sz) → 'Matrix4' | Returns a matrix scaled by factors (sx, sy, sz) |
rotate_from_euler(rx, ry, rz) → 'Matrix4' | |
rotate(angle, axis) → 'Matrix4' | Returns a matrix rotating by angle around the specified axis vector |