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

NameTypeAccessDescription
AdoubleRead/WriteGets or sets element A (row 1, column 1 of the linear part).
BdoubleRead/WriteGets or sets element B (row 1, column 2 of the linear part).
CdoubleRead/WriteGets or sets element C (row 1, column 3 of the linear part).
DdoubleRead/WriteGets or sets element D (row 2, column 1 of the linear part).
EdoubleRead/WriteGets or sets element E (row 2, column 2 of the linear part).
FdoubleRead/WriteGets or sets element F (row 2, column 3 of the linear part).
GdoubleRead/WriteGets or sets the g.
HdoubleRead/WriteGets or sets the h.
IdoubleRead/WriteGets or sets the i.
TxdoubleRead/WriteGets or sets the tx.
TydoubleRead/WriteGets or sets the ty.
TzdoubleRead/WriteGets or sets the tz.

Methods

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

See Also

 English