Public Member Functions | |
| Matrix3f | __add__ (self, ConstMatrix3f b) |
| bool | __eq__ (self, ConstMatrix3f b) |
| ConstVector3f | __getitem__ (self, int row) |
| __init__ (self, *args, **kwargs) | |
| Matrix3f | __mul__ (self, float a) |
| Vector3f | __mul__ (self, ConstVector3f b) |
| Matrix3f | __mul__ (self, ConstMatrix3f b) |
| bool | __ne__ (self, ConstMatrix3f b) |
| str | __repr__ (self) |
| typing.Any | __rlshift__ (self, typing.Any mat) |
| Matrix3f | __rmul__ (self, float b) |
| Matrix3f | __sub__ (self, ConstMatrix3f b) |
| Matrix3f | __truediv__ (self, float a) |
| Vector3f | col (self, int i) |
| float | det (self) |
| Matrix3f | inverse (self) |
| float | norm (self) |
| float | normSq (self) |
| Matrix3_float_QR | qr (self) |
| Vector3f | toEulerAngles (self) |
| float | trace (self) |
| Matrix3f | transposed (self) |
| ConstVector3f | x (self) |
| ConstVector3f | y (self) |
| ConstVector3f | z (self) |
Static Public Member Functions | |
| Matrix3f | approximateLinearRotationMatrixFromEuler (ConstVector3f eulerAngles) |
| Matrix3f | fromColumns (ConstVector3f x, ConstVector3f y, ConstVector3f z) |
| Matrix3f | fromRows (ConstVector3f x, ConstVector3f y, ConstVector3f z) |
| Matrix3f | identity () |
| Matrix3f | rotation (ConstVector3f axis, float angle) |
| Matrix3f | rotation (ConstVector3f from_, ConstVector3f to) |
| Matrix3f | rotationFromEuler (ConstVector3f eulerAngles) |
| Matrix3f | scale (float s) |
| Matrix3f | scale (float sx, float sy, float sz) |
| Matrix3f | scale (ConstVector3f s) |
| Matrix3f | zero () |
Static Protected Attributes | |
| typing | _offsetof_x = 0 |
| typing | _offsetof_y = 12 |
| typing | _offsetof_z = 24 |
Generated from: MR::Matrix3f Aliases: AffineXf_Vector3f_M, Vector3_float_MatrixType arbitrary 3x3 matrix
| mrmeshpy.ConstMatrix3f.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ConstMatrix3f, arg0: meshlib.mrmeshpy.ConstQuaternionf) -> None converts this into 3x3 rotation matrix 2. __init__(self: meshlib.mrmeshpy.ConstMatrix3f) -> None 3. __init__(self: meshlib.mrmeshpy.ConstMatrix3f, x: meshlib.mrmeshpy.ConstVector3f, y: meshlib.mrmeshpy.ConstVector3f, z: meshlib.mrmeshpy.ConstVector3f) -> None initializes matrix from its 3 rows 4. __init__(self: meshlib.mrmeshpy.ConstMatrix3f, m: meshlib.mrmeshpy.ConstMatrix3d) -> None Here `T == U` doesn't seem to cause any issues in the C++ code, but we're still disabling it because it somehow gets emitted when generating the bindings, and results in duplicate functions in C#. 5. __init__(self: meshlib.mrmeshpy.ConstMatrix3f, arg0: meshlib.mrmeshpy.Matrix3f) -> None Implicit copy constructor. 6. __init__(self: meshlib.mrmeshpy.ConstMatrix3f, : meshlib.mrmeshpy.Matrix3f) -> None
| Matrix3f mrmeshpy.ConstMatrix3f.__add__ | ( | self, | |
| ConstMatrix3f | 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.
| bool mrmeshpy.ConstMatrix3f.__eq__ | ( | self, | |
| ConstMatrix3f | b ) |
| ConstVector3f mrmeshpy.ConstMatrix3f.__getitem__ | ( | self, | |
| int | row ) |
row access
| Matrix3f mrmeshpy.ConstMatrix3f.__mul__ | ( | self, | |
| ConstMatrix3f | b ) |
product of two matrices
| Vector3f mrmeshpy.ConstMatrix3f.__mul__ | ( | self, | |
| ConstVector3f | b ) |
x = a * b
| Matrix3f mrmeshpy.ConstMatrix3f.__mul__ | ( | self, | |
| float | a ) |
| bool mrmeshpy.ConstMatrix3f.__ne__ | ( | self, | |
| ConstMatrix3f | b ) |
| str mrmeshpy.ConstMatrix3f.__repr__ | ( | self | ) |
| typing.Any mrmeshpy.ConstMatrix3f.__rlshift__ | ( | self, | |
| typing.Any | mat ) |
| Matrix3f mrmeshpy.ConstMatrix3f.__rmul__ | ( | self, | |
| float | b ) |
| Matrix3f mrmeshpy.ConstMatrix3f.__sub__ | ( | self, | |
| ConstMatrix3f | b ) |
| Matrix3f mrmeshpy.ConstMatrix3f.__truediv__ | ( | self, | |
| float | a ) |
|
static |
returns linear by angles approximation of the rotation matrix, which is close to true rotation matrix for small angles
| Vector3f mrmeshpy.ConstMatrix3f.col | ( | self, | |
| int | i ) |
column access
| float mrmeshpy.ConstMatrix3f.det | ( | self | ) |
computes determinant of the matrix
|
static |
constructs a matrix from its 3 columns; use this method to get the matrix that transforms basis vectors ( plusX, plusY, plusZ ) into vectors ( x, y, z ) respectively
|
static |
constructs a matrix from its 3 rows
|
static |
| Matrix3f mrmeshpy.ConstMatrix3f.inverse | ( | self | ) |
computes inverse matrix
| float mrmeshpy.ConstMatrix3f.norm | ( | self | ) |
| float mrmeshpy.ConstMatrix3f.normSq | ( | self | ) |
compute sum of squared matrix elements
| Matrix3_float_QR mrmeshpy.ConstMatrix3f.qr | ( | self | ) |
decompose this matrix on the product Q*R, where Q is orthogonal and R is upper triangular
|
static |
creates matrix representing rotation around given axis on given angle
|
static |
creates matrix representing rotation that after application to (from) makes (to) vector
|
static |
creates matrix representing rotation from 3 Euler angles: R=R(z)*R(y)*R(x) see more https://en.wikipedia.org/wiki/Euler_angles#Conventions_by_intrinsic_rotations
|
static |
|
static |
returns a matrix that scales uniformly
|
static |
returns a matrix that has its own scale along each axis
| Vector3f mrmeshpy.ConstMatrix3f.toEulerAngles | ( | self | ) |
returns 3 Euler angles, assuming this is a rotation matrix composed as follows: R=R(z)*R(y)*R(x)
| float mrmeshpy.ConstMatrix3f.trace | ( | self | ) |
computes trace of the matrix
| Matrix3f mrmeshpy.ConstMatrix3f.transposed | ( | self | ) |
computes transposed matrix
| ConstVector3f mrmeshpy.ConstMatrix3f.x | ( | self | ) |
rows, identity matrix by default
Reimplemented in mrmeshpy.Matrix3f, and mrmeshpy.Matrix3f.
| ConstVector3f mrmeshpy.ConstMatrix3f.y | ( | self | ) |
Reimplemented in mrmeshpy.Matrix3f, and mrmeshpy.Matrix3f.
| ConstVector3f mrmeshpy.ConstMatrix3f.z | ( | self | ) |
Reimplemented in mrmeshpy.Matrix3f, and mrmeshpy.Matrix3f.
|
static |
|
staticprotected |
|
staticprotected |
|
staticprotected |