| Modifier and Type | Field and Description |
|---|---|
float |
M11
A1.
|
float |
M12
A2.
|
float |
M13
A3.
|
float |
M14
A4.
|
float |
M21
B1.
|
float |
M22
B2.
|
float |
M23
B3.
|
float |
M24
B4.
|
float |
M31
C1.
|
float |
M32
C2.
|
float |
M33
C3.
|
float |
M34
C4.
|
float |
M41
D1.
|
float |
M42
D2.
|
float |
M43
D3.
|
float |
M44
D4.
|
| Constructor and Description |
|---|
Matrix4x4() |
Matrix4x4(float m11,
float m12,
float m13,
float m14,
float m21,
float m22,
float m23,
float m24,
float m31,
float m32,
float m33,
float m34,
float m41,
float m42,
float m43,
float m44)
Initializes a new instance of the
Matrix4x4 struct. |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
Matrix4x4 |
Clone() |
void |
CloneTo(Matrix4x4 that) |
float |
determinant()
Calculates determinant.
|
boolean |
equals(Object obj) |
int |
hashCode() |
static Matrix4x4 |
identity()
Returns identity matrix.
|
Matrix4x4 |
inverse()
Creates inverse matrix.
|
static boolean |
invert(Matrix4x4 matrix,
Matrix4x4[] result) |
static boolean |
isEquals(Matrix4x4 obj1,
Matrix4x4 obj2) |
static Matrix4x4 |
lookAtRH(com.aspose.foundation.rendering.threed.ApsVector3F cameraPosition,
com.aspose.foundation.rendering.threed.ApsVector3F cameraTarget,
com.aspose.foundation.rendering.threed.ApsVector3F cameraUpVector)
Creates a view matrix.
|
static Matrix4x4 |
op_Addition(Matrix4x4 left,
Matrix4x4 right)
Adds two matrices.
|
static Matrix4x4 |
op_Multiply(float scalar,
Matrix4x4 m)
Adds two matrices.
|
static Matrix4x4 |
op_Multiply(Matrix4x4 left,
Matrix4x4 right)
Multiplies a matrix by another matrix.
|
static Matrix4x4 |
orthographicRH(float width,
float height,
float znearPlane,
float zfarPlane)
Creates an orthographic perspective matrix from the given view volume dimensions.
|
static Matrix4x4 |
perspectiveRH(float fieldOfViewY,
float aspectRatio,
float znearPlane,
float zfarPlane)
Creates a perspective projection matrix based on a field of view, aspect ratio, and near and far view plane distances.
|
static Matrix4x4 |
rotate(com.aspose.foundation.rendering.threed.ApsVector3F axis,
float radians)
Creates rotation around axis.
|
static Matrix4x4 |
rotationX(float radians)
Creates rotation around X-axis.
|
static Matrix4x4 |
rotationY(float radians)
Creates rotation around Y-axis.
|
static Matrix4x4 |
rotationZ(float radians)
Creates rotation around Z-axis.
|
static Matrix4x4 |
scaling(com.aspose.foundation.rendering.threed.ApsVector3F scales)
Creates a scaling matrix.
|
static Matrix4x4 |
scaling(float scale)
Creates a scaling matrix.
|
static Matrix4x4 |
translation(com.aspose.foundation.rendering.threed.ApsVector3F position)
Creates a translation matrix.
|
void |
transpose()
Transposes matrix.
|
Matrix4x4 |
transposed()
Creates transposed matrix.
|
public float M11
A1.
public float M12
A2.
public float M13
A3.
public float M14
A4.
public float M21
B1.
public float M22
B2.
public float M23
B3.
public float M24
B4.
public float M31
C1.
public float M32
C2.
public float M33
C3.
public float M34
C4.
public float M41
D1.
public float M42
D2.
public float M43
D3.
public float M44
D4.
public Matrix4x4()
public Matrix4x4(float m11,
float m12,
float m13,
float m14,
float m21,
float m22,
float m23,
float m24,
float m31,
float m32,
float m33,
float m34,
float m41,
float m42,
float m43,
float m44)
Initializes a new instance of the Matrix4x4 struct.
m11 - A1.m12 - A2.m13 - A3.m14 - A4.m21 - B1.m22 - B2.m23 - B3.m24 - B4.m31 - C1.m32 - C2.m33 - C3.m34 - C4.m41 - D1.m42 - D2.m43 - D3.m44 - D4.public final float determinant()
Calculates determinant.
public final Matrix4x4 inverse()
Creates inverse matrix.
public final Matrix4x4 transposed()
Creates transposed matrix.
public final void transpose()
Transposes matrix.
public static Matrix4x4 identity()
Returns identity matrix.
public static Matrix4x4 rotationX(float radians)
Creates rotation around X-axis.
radians - The amount, in radians, by which to rotate around the X-axis.public static Matrix4x4 rotationY(float radians)
Creates rotation around Y-axis.
radians - Amount, in radians, by which to rotate around the Y-axis.public static Matrix4x4 rotationZ(float radians)
Creates rotation around Z-axis.
radians - Amount, in radians, by which to rotate around the Z-axis.public static Matrix4x4 rotate(com.aspose.foundation.rendering.threed.ApsVector3F axis, float radians)
Creates rotation around axis.
axis - Axis to rotate around.radians - Amount, in radians, by which to rotate around the given axis.public static Matrix4x4 translation(com.aspose.foundation.rendering.threed.ApsVector3F position)
Creates a translation matrix.
position - The amount to translate in each axis.public static Matrix4x4 scaling(float scale)
Creates a scaling matrix.
scale - Value to scale.public static Matrix4x4 scaling(com.aspose.foundation.rendering.threed.ApsVector3F scales)
Creates a scaling matrix.
scales - Values to scale.public static Matrix4x4 lookAtRH(com.aspose.foundation.rendering.threed.ApsVector3F cameraPosition, com.aspose.foundation.rendering.threed.ApsVector3F cameraTarget, com.aspose.foundation.rendering.threed.ApsVector3F cameraUpVector)
Creates a view matrix.
cameraPosition - Position of the camera.cameraTarget - Target towards which the camera is pointing.cameraUpVector - Direction that is "up" from the camera's point of view.public static Matrix4x4 perspectiveRH(float fieldOfViewY, float aspectRatio, float znearPlane, float zfarPlane)
Creates a perspective projection matrix based on a field of view, aspect ratio, and near and far view plane distances.
fieldOfViewY - Field of view in the y direction, in radians.aspectRatio - Aspect ratio, defined as view space width divided by height.znearPlane - Distance to the near view plane.zfarPlane - Distance to the far view plane.public static Matrix4x4 orthographicRH(float width, float height, float znearPlane, float zfarPlane)
Creates an orthographic perspective matrix from the given view volume dimensions.
width - Width of the view volume.height - Height of the view volume.znearPlane - Minimum Z-value of the view volume.zfarPlane - Maximum Z-value of the view volume.public static Matrix4x4 op_Multiply(Matrix4x4 left, Matrix4x4 right)
Multiplies a matrix by another matrix.
left - First source matrix.right - Second source matrix.public static Matrix4x4 op_Addition(Matrix4x4 left, Matrix4x4 right)
Adds two matrices.
left - First source matrix.right - Second source matrix.public static Matrix4x4 op_Multiply(float scalar, Matrix4x4 m)
Adds two matrices.
scalar - Scalar.m - Matrix.public void CloneTo(Matrix4x4 that)
CloneTo in class com.aspose.ms.System.ValueType<Matrix4x4>public Matrix4x4 Clone()
Clone in class com.aspose.ms.System.ValueType<Matrix4x4>Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.