Matrix4 Structure
4x4 matrix implementation.

Namespace: Aspose.ThreeD.Utilities
Assembly: Aspose.3D (in Aspose.3D.dll) Version: 22.5.0.0 (22.5)
Syntax
`public struct Matrix4`

The Matrix4 type exposes the following members.

Constructors
NameDescription
Matrix4(Double)
Initializes a new instance of the Matrix4 struct.
Matrix4(FMatrix4)
Construct Matrix4 from an FMatrix4 instance
Matrix4(Vector4, Vector4, Vector4, Vector4)
Constructs matrix from 4 rows.
Matrix4(Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double)
Initializes a new instance of the Matrix4 struct.
Properties
NameDescription
Determinant
Gets the determinant of the matrix.
Identity
Gets the identity matrix.
Methods
NameDescription
Concatenate
Concatenates the two matrices
Decompose
Equals (Inherited from ValueType.)
GetHashCode (Inherited from ValueType.)
GetType (Inherited from Object.)
Inverse
Inverses this instance.
Normalize
Normalizes this instance.
Rotate(Quaternion)
Create a rotation matrix from a quaternion
Rotate(Double, Vector3)
Create a rotation matrix by rotation angle and axis
RotateFromEuler(Vector3)
Create a rotation matrix from Euler angle
RotateFromEuler(Double, Double, Double)
Create a rotation matrix from Euler angle
Scale(Double)
Creates a matrix that scales along the x-axis, the y-axis and the z-axis.
Scale(Vector3)
Creates a matrix that scales along the x-axis, the y-axis and the z-axis.
Scale(Double, Double, Double)
Creates a matrix that scales along the x-axis, the y-axis and the z-axis.
SetTRS
Initializes the matrix with translation/rotation/scale
ToArray
Converts matrix to array.
ToString
Returns a String that represents the current Matrix4.
(Overrides ValueTypeToString.)
Translate(Vector3)
Creates a matrix that translates along the x-axis, the y-axis and the z-axis
Translate(Double, Double, Double)
Creates a matrix that translates along the x-axis, the y-axis and the z-axis
Transpose
Transposes this instance.
Operators
NameDescription
Multiply(Matrix4, Matrix4)
Multiply the two matrices
Multiply(Matrix4, Vector3)
Multiply the matrix and vector3
Multiply(Matrix4, Vector4)
Multiply the matrix and vector4
Multiply(Matrix4, Double)
Multiply the matrix and double value
Fields
NameDescription
m00
The m00.
m01
The m01.
m02
The m02.
m03
The m03.
m10
The m10.
m11
The m11.
m12
The m12.
m13
The m13.
m20
The m20.
m21
The m21.
m22
The m22.
m23
The m23.
m30
The m30.
m31
The m31.
m32
The m32.
m33
The m33.