Matrix3D
Overview
Matrix3D is a class in Aspose.PDF FOSS for .NET.
4×3 affine 3D matrix (public-API shape for PDF 3D camera positioning).
This class declares 9 methods for Matrix3D objects in .NET programs.
Available methods include: Add, Equals, GetAngle, GetHashCode, Matrix3D, ToString.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: A, B, C, D, E, F, and 6 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
A | double | Read/Write | Gets or sets element A (row 1, column 1 of the linear part). |
B | double | Read/Write | Gets or sets element B (row 1, column 2 of the linear part). |
C | double | Read/Write | Gets or sets element C (row 1, column 3 of the linear part). |
D | double | Read/Write | Gets or sets element D (row 2, column 1 of the linear part). |
E | double | Read/Write | Gets or sets element E (row 2, column 2 of the linear part). |
F | double | Read/Write | Gets or sets element F (row 2, column 3 of the linear part). |
G | double | Read/Write | Gets or sets the g. |
H | double | Read/Write | Gets or sets the h. |
I | double | Read/Write | Gets or sets the i. |
Tx | double | Read/Write | Gets or sets the tx. |
Ty | double | Read/Write | Gets or sets the ty. |
Tz | double | Read/Write | Gets or sets the tz. |
Methods
| Signature | Description |
|---|---|
Matrix3D() | Creates the identity matrix (A, E and I are 1; every other element is 0). |
Matrix3D(matrix: Matrix3D) | Creates a copy of the given matrix; null gives the identity matrix. |
Matrix3D(a: double, b: double, c: double, d: double, e: double, f: double, g: double, h: double, i: double, tx: double, ty: double, tz: double) | Creates a matrix from its twelve elements: the 3 x 3 linear part row by row (a to i) followed by the translation (tx, ty, tz). |
Matrix3D(matrix3DArray: double[]) | Creates a matrix from an array of up to twelve values in the order A, B, C, D, E, F, G, H, I, Tx, Ty, Tz. |
Add(other: Matrix3D) | Componentwise sum of this matrix and other. |
GetAngle(rotation: Rotation) | Convert a rotation enum value (None/on90/on180/on270/on360) to radians. |
Equals(obj: object?) | Calls Equals(obj) on this Matrix3D instance. |
GetHashCode() | Calls GetHashCode on this Matrix3D instance. |
ToString() | Calls ToString on this Matrix3D instance. |