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#
Create transformation matrix mirroring about a plane |
|
Create transformation matrix that rotates about a given vector by a given angle |
|
Create scaling transformation matrix |
|
Create transformation matrix converting to new coordinate system. |
|
Create translating transformation matrix |
|
Matrix addition operator. |
|
Matrix multiplication operator - assumes (0,0,0,1) in last row. |
|
Matrix subtraction operator. |
|
op_Explicit method. |
Add matrix to itself. |
|
Equals method. |
|
GetHashCode method. |
|
GetType method. |
|
Invert itself if determinant is non-zero. Return 0 if inverted; 1 - otherwise. |
|
Multiply this matrix by the given matrix |
|
Convenient method to combine x, y, z scale into itself. |
|
Subtract matrix from itself. |
|
String representation. |
|
Apply this transformation matrix to a given point/vector. |
|
Convenient method to combine (x, y, z) translatation into itself. |
|
Transpose itself. |
Matrix determinant accessor. |
|
Item property. |
Property detail#
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.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.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.
- 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.