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

NameTypeAccessDescription
m00floatReadGets the m00.
m01floatReadGets the m01.
m02floatReadGets the m02.
m03floatReadGets the m03.
m10floatReadGets the m10.
m11floatReadGets the m11.
m12floatReadGets the m12.
m13floatReadGets the m13.
m20floatReadGets the m20.
m21floatReadGets the m21.
m22floatReadGets the m22.
m23floatReadGets the m23.
m30floatReadGets the m30.
m31floatReadGets the m31.
m32floatReadGets the m32.
m33floatReadGets the m33.
determinantfloatReadGets the determinant.

Methods

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

See Also