Public Member Functions | |
| Matrix4d | __add__ (self, ConstMatrix4d b) |
| float | __call__ (self, int row, int col) |
| Vector3d | __call__ (self, ConstVector3d b) |
| bool | __eq__ (self, ConstMatrix4d b) |
| ConstVector4d | __getitem__ (self, int row) |
| __init__ (self, *args, **kwargs) | |
| Matrix4d | __mul__ (self, float a) |
| Vector4d | __mul__ (self, ConstVector4d b) |
| Matrix4d | __mul__ (self, ConstMatrix4d b) |
| bool | __ne__ (self, ConstMatrix4d b) |
| str | __repr__ (self) |
| typing.Any | __rlshift__ (self, typing.Any mat) |
| Matrix4d | __rmul__ (self, float b) |
| Matrix4d | __sub__ (self, ConstMatrix4d b) |
| Matrix4d | __truediv__ (self, float a) |
| Vector4d | col (self, int i) |
| float | data (self) |
| float | det (self) |
| Matrix3d | getRotation (self) |
| Vector3d | getTranslation (self) |
| Matrix4d | inverse (self) |
| float | norm (self) |
| float | normSq (self) |
| Matrix3d | submatrix3 (self, int i, int j) |
| float | trace (self) |
| Matrix4d | transposed (self) |
| ConstVector4d | w (self) |
| ConstVector4d | x (self) |
| ConstVector4d | y (self) |
| ConstVector4d | z (self) |
Static Public Member Functions | |
| Matrix4d | identity () |
| Matrix4d | scale (float s) |
| Matrix4d | zero () |
Static Protected Attributes | |
| typing | _offsetof_w = 96 |
| typing | _offsetof_x = 0 |
| typing | _offsetof_y = 32 |
| typing | _offsetof_z = 64 |
Generated from: MR::Matrix4d Aliases: Vector4_double_MatrixType arbitrary 4x4 matrix
| mrmeshpy.ConstMatrix4d.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ConstMatrix4d) -> None 2. __init__(self: meshlib.mrmeshpy.ConstMatrix4d, x: meshlib.mrmeshpy.ConstVector4d, y: meshlib.mrmeshpy.ConstVector4d, z: meshlib.mrmeshpy.ConstVector4d, w: meshlib.mrmeshpy.ConstVector4d) -> None initializes matrix from 4 row-vectors 3. __init__(self: meshlib.mrmeshpy.ConstMatrix4d, r: meshlib.mrmeshpy.ConstMatrix3d, t: meshlib.mrmeshpy.ConstVector3d) -> None construct from rotation matrix and translation vector 4. __init__(self: meshlib.mrmeshpy.ConstMatrix4d, xf: meshlib.mrmeshpy.ConstAffineXf3d) -> None Currently `AffineXf3<long long>` doesn't seem to compile, so we disable this constructor for `Matrix4<long long>`, because otherwise mrbind instantiates the entire `AffineXf3<long long>` and chokes on it. 5. __init__(self: meshlib.mrmeshpy.ConstMatrix4d, arg0: meshlib.mrmeshpy.Matrix4d) -> None Implicit copy constructor. 6. __init__(self: meshlib.mrmeshpy.ConstMatrix4d, : meshlib.mrmeshpy.Matrix4d) -> None
| Matrix4d mrmeshpy.ConstMatrix4d.__add__ | ( | self, | |
| ConstMatrix4d | b ) |
NOTE: We use `std::declval()` in the operators below because libclang 18 in our binding generator is bugged and chokes on decltyping `a.x` and such. TODO fix this when we update libclang.
| Vector3d mrmeshpy.ConstMatrix4d.__call__ | ( | self, | |
| ConstVector3d | b ) |
converts 3d-vector b in 4d-vector (b,1), multiplies matrix on it, and assuming the result is in homogeneous coordinates returns it as 3d-vector
| float mrmeshpy.ConstMatrix4d.__call__ | ( | self, | |
| int | row, | ||
| int | col ) |
element access
| bool mrmeshpy.ConstMatrix4d.__eq__ | ( | self, | |
| ConstMatrix4d | b ) |
| ConstVector4d mrmeshpy.ConstMatrix4d.__getitem__ | ( | self, | |
| int | row ) |
row access
| Matrix4d mrmeshpy.ConstMatrix4d.__mul__ | ( | self, | |
| ConstMatrix4d | b ) |
product of two matrices
| Vector4d mrmeshpy.ConstMatrix4d.__mul__ | ( | self, | |
| ConstVector4d | b ) |
x = a * b
| Matrix4d mrmeshpy.ConstMatrix4d.__mul__ | ( | self, | |
| float | a ) |
| bool mrmeshpy.ConstMatrix4d.__ne__ | ( | self, | |
| ConstMatrix4d | b ) |
| str mrmeshpy.ConstMatrix4d.__repr__ | ( | self | ) |
| typing.Any mrmeshpy.ConstMatrix4d.__rlshift__ | ( | self, | |
| typing.Any | mat ) |
| Matrix4d mrmeshpy.ConstMatrix4d.__rmul__ | ( | self, | |
| float | b ) |
| Matrix4d mrmeshpy.ConstMatrix4d.__sub__ | ( | self, | |
| ConstMatrix4d | b ) |
| Matrix4d mrmeshpy.ConstMatrix4d.__truediv__ | ( | self, | |
| float | a ) |
| Vector4d mrmeshpy.ConstMatrix4d.col | ( | self, | |
| int | i ) |
column access
| float mrmeshpy.ConstMatrix4d.data | ( | self | ) |
Reimplemented in mrmeshpy.Matrix4d, and mrmeshpy.Matrix4d.
| float mrmeshpy.ConstMatrix4d.det | ( | self | ) |
computes determinant of the matrix
| Matrix3d mrmeshpy.ConstMatrix4d.getRotation | ( | self | ) |
| Vector3d mrmeshpy.ConstMatrix4d.getTranslation | ( | self | ) |
|
static |
| Matrix4d mrmeshpy.ConstMatrix4d.inverse | ( | self | ) |
computes inverse matrix
| float mrmeshpy.ConstMatrix4d.norm | ( | self | ) |
| float mrmeshpy.ConstMatrix4d.normSq | ( | self | ) |
compute sum of squared matrix elements
|
static |
returns a matrix that scales uniformly
| Matrix3d mrmeshpy.ConstMatrix4d.submatrix3 | ( | self, | |
| int | i, | ||
| int | j ) |
computes submatrix of the matrix with excluded i-th row and j-th column
| float mrmeshpy.ConstMatrix4d.trace | ( | self | ) |
computes trace of the matrix
| Matrix4d mrmeshpy.ConstMatrix4d.transposed | ( | self | ) |
computes transposed matrix
| ConstVector4d mrmeshpy.ConstMatrix4d.w | ( | self | ) |
Reimplemented in mrmeshpy.Matrix4d, and mrmeshpy.Matrix4d.
| ConstVector4d mrmeshpy.ConstMatrix4d.x | ( | self | ) |
rows, identity matrix by default
Reimplemented in mrmeshpy.Matrix4d, and mrmeshpy.Matrix4d.
| ConstVector4d mrmeshpy.ConstMatrix4d.y | ( | self | ) |
Reimplemented in mrmeshpy.Matrix4d, and mrmeshpy.Matrix4d.
| ConstVector4d mrmeshpy.ConstMatrix4d.z | ( | self | ) |
Reimplemented in mrmeshpy.Matrix4d, and mrmeshpy.Matrix4d.
|
static |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |