Matrix4

Overview

Matrix4 is a struct in Aspose.3D FOSS for .NET.

Matrix4.Matrix4 constructs a 4x4 matrix from the 16 supplied float components.

This struct provides 22 methods for working with Matrix4 objects in .NET programs. Available methods include: Concatenate, Decompose, Inverse, Matrix4, Normalize, Rotate, RotateFromEuler, Scale, SetTRS, ToArray, ToString, Translate, and 1 additional methods. All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package. Properties: Determinant, Identity.

Properties

NameTypeAccessDescription
IdentityMatrix4ReadGets the identity.
DeterminantdoubleReadGets the determinant.

Methods

SignatureDescription
Matrix4(r0: Vector4, r1: Vector4, r2: Vector4, r3: Vector4)Constructs a 4x4 matrix from the 16 supplied float components
Matrix4(m00: double, m01: double, m02: double, m03: double, m10: double, m11: double, m12: double, m13: double, m20: double, m21: double, m22: double, m23: double, m30: double, m31: double, m32: double, m33: double)Calls Matrix4(m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33) on this Matrix4 instance.
Matrix4(m: FMatrix4)Calls Matrix4(m) on this Matrix4 instance.
Matrix4(m: float[])Calls Matrix4(m) on this Matrix4 instance.
Matrix4(m: double[])Calls Matrix4(m) on this Matrix4 instance.
Concatenate(m2: Matrix4)Calls Concatenate(m2) on this Matrix4 instance.
Transpose()Calls Transpose on this Matrix4 instance.
Normalize()Calls Normalize on this Matrix4 instance.
Inverse()Calls Inverse on this Matrix4 instance.
SetTRS(translation: Vector3, rotation: Vector3, scale: Vector3)Sets the trs value.
ToArray()Calls ToArray on this Matrix4 instance.
Decompose(translation: Vector3, scaling: Vector3, rotation: Quaternion)Calls Decompose(translation, scaling, rotation) on this Matrix4 instance.
ToString()Calls ToString on this Matrix4 instance.
Translate(t: Vector3)Calls Translate(t) on this Matrix4 instance.
Translate(tx: double, ty: double, tz: double)Calls Translate(tx, ty, tz) on this Matrix4 instance.
Scale(s: Vector3)Creates a scaling matrix using the provided FVector3 scale factors
Scale(s: double)Calls Scale(s) on this Matrix4 instance.
Scale(sx: double, sy: double, sz: double)Calls Scale(sx, sy, sz) on this Matrix4 instance.
RotateFromEuler(eul: Vector3)Calls RotateFromEuler(eul) on this Matrix4 instance.
RotateFromEuler(rx: double, ry: double, rz: double)Calls RotateFromEuler(rx, ry, rz) on this Matrix4 instance.
Rotate(angle: double, axis: Vector3)Calls Rotate(angle, axis) on this Matrix4 instance.
Rotate(q: Quaternion)Calls Rotate(q) on this Matrix4 instance.

See Also

 English