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 13 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
| Name | Type | Access | Description |
|---|---|---|---|
Identity | Matrix4 | Read | Gets the identity. |
Determinant | double | Read | Gets the determinant. |
Methods
| Signature | Description |
|---|---|
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) | |
Matrix4(m: FMatrix4) | |
Matrix4(m: float[]) | |
Matrix4(m: double[]) | |
Concatenate(m2: Matrix4) | |
Transpose() | |
Normalize() | |
Inverse() | |
SetTRS(translation: Vector3, rotation: Vector3, scale: Vector3) | Sets the trs value. |
ToArray() | |
Decompose(translation: Vector3, scaling: Vector3, rotation: Quaternion) | |
ToString() | |
Translate(t: Vector3) | |
Translate(tx: double, ty: double, tz: double) | |
Scale(s: Vector3) | Creates a scaling matrix using the provided FVector3 scale factors |
Scale(s: double) | |
Scale(sx: double, sy: double, sz: double) | |
RotateFromEuler(eul: Vector3) | |
RotateFromEuler(rx: double, ry: double, rz: double) | |
Rotate(angle: double, axis: Vector3) | |
Rotate(q: Quaternion) |