Matrix4D#

class ansys.mechanical.stubs.v242.Ansys.ACT.Math.Matrix4D#

Bases: object

Transformation matrix

single linear standard zero-based row-column index

0 4 8 12 | | Rot00*Sx Rot01 Rot02 TransX |
1 5 9 13 | | Rot10 Rot11*Sy Rot12 TransY |
2 6 10 14 | = | Rot20 Rot21 Rot22*Sz TransZ |
3 7 11 15 | | 0 (30) 0 (31) 0 (32) 1 (33) |

Overview#

CreateMirror

Create transformation matrix mirroring about a plane

CreateRotate

Create transformation matrix that rotates about a given vector by a given angle

CreateScale

Create scaling transformation matrix

CreateSystem

Create transformation matrix converting to new coordinate system.

CreateTranslate

Create translating transformation matrix

__add__

Matrix addition operator.

__mul__

Matrix multiplication operator - assumes (0,0,0,1) in last row.

__sub__

Matrix subtraction operator.

op_Explicit

op_Explicit method.

Add

Add matrix to itself.

Equals

Equals method.

GetHashCode

GetHashCode method.

GetType

GetType method.

Invert

Invert itself if determinant is non-zero. Return 0 if inverted; 1 - otherwise.

Multiply

Multiply this matrix by the given matrix

Scale

Convenient method to combine x, y, z scale into itself.

Subtract

Subtract matrix from itself.

ToString

String representation.

Transform

Apply this transformation matrix to a given point/vector.

Translate

Convenient method to combine (x, y, z) translatation into itself.

Transpose

Transpose itself.

Determinant

Matrix determinant accessor.

Item

Item property.

Property detail#

property Matrix4D.Determinant: float | None#

Matrix determinant accessor.

property Matrix4D.Item: float | None#

Item property.

Method detail#

Matrix4D.Add(m44: Ansys.ACT.Math.Matrix4D) None#

Add matrix to itself.

classmethod Matrix4D.CreateMirror(normal: Ansys.ACT.Math.Vector3D, d: float) Ansys.ACT.Math.Matrix4D#

Create transformation matrix mirroring about a plane

classmethod Matrix4D.CreateRotate(rotationAxis: Ansys.ACT.Math.Vector3D, rotationRadians: float) Ansys.ACT.Math.Matrix4D#

Create transformation matrix that rotates about a given vector by a given angle

classmethod Matrix4D.CreateScale(x: float, y: float, z: float) Ansys.ACT.Math.Matrix4D#

Create scaling transformation matrix

classmethod Matrix4D.CreateSystem(xAxis: Ansys.ACT.Math.Vector3D, yAxis: Ansys.ACT.Math.Vector3D, zAxis: Ansys.ACT.Math.Vector3D) Ansys.ACT.Math.Matrix4D#

Create transformation matrix converting to new coordinate system.

classmethod Matrix4D.CreateTranslate(x: float, y: float, z: float) Ansys.ACT.Math.Matrix4D#

Create translating transformation matrix

Matrix4D.Equals(obj: Any) bool#

Equals method.

Matrix4D.GetHashCode() int#

GetHashCode method.

Matrix4D.GetType() type#

GetType method.

Matrix4D.Invert() int#

Invert itself if determinant is non-zero. Return 0 if inverted; 1 - otherwise.

Matrix4D.Multiply(m44: Ansys.ACT.Math.Matrix4D) None#

Multiply this matrix by the given matrix

Matrix4D.Scale(x: float, y: float, z: float) None#

Convenient method to combine x, y, z scale into itself.

Matrix4D.Subtract(m44: Ansys.ACT.Math.Matrix4D) None#

Subtract matrix from itself.

Matrix4D.ToString() str#

String representation.

Matrix4D.Transform(vector3D: Ansys.ACT.Math.Vector3D) Ansys.ACT.Math.Vector3D#
Apply this transformation matrix to a given point/vector.
Note: assumes (0,0,0,1) in last row.
Matrix4D.Translate(x: float, y: float, z: float) None#

Convenient method to combine (x, y, z) translatation into itself.

Matrix4D.Transpose() None#

Transpose itself.

classmethod Matrix4D.__add__(a: Ansys.ACT.Math.Matrix4D, b: Ansys.ACT.Math.Matrix4D) Ansys.ACT.Math.Matrix4D#

Matrix addition operator.

classmethod Matrix4D.__mul__(a: Ansys.ACT.Math.Matrix4D, b: Ansys.ACT.Math.Matrix4D) Ansys.ACT.Math.Matrix4D#

Matrix multiplication operator - assumes (0,0,0,1) in last row.

classmethod Matrix4D.__sub__(a: Ansys.ACT.Math.Matrix4D, b: Ansys.ACT.Math.Matrix4D) Ansys.ACT.Math.Matrix4D#

Matrix subtraction operator.

classmethod Matrix4D.op_Explicit(m44: Ansys.ACT.Math.Matrix4D) float#

op_Explicit method.