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

NameTypeAccessDescription
m00floatReadIs the element in row 0, column 0 of the matrix
m01floatRead
m02floatRead
m03floatRead
m10floatRead
m11floatReadIs the element in row 1, column 1 of the matrix
m12floatRead
m13floatRead
m20floatRead
m21floatRead
m22floatReadIs the element in row 2, column 2 of the matrix
m23floatRead
m30floatRead
m31floatRead
m32floatRead
m33floatReadIs the element in row 3, column 3 of the matrix
determinantfloatReadIs the scalar determinant value of the matrix

Methods

SignatureDescription
__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