Public Member Functions | |
| Matrix2d | __add__ (self, ConstMatrix2d b) |
| bool | __eq__ (self, ConstMatrix2d b) |
| ConstVector2d | __getitem__ (self, int row) |
| __init__ (self, *args, **kwargs) | |
| Matrix2d | __mul__ (self, float a) |
| Vector2d | __mul__ (self, ConstVector2d b) |
| Matrix2d | __mul__ (self, ConstMatrix2d b) |
| bool | __ne__ (self, ConstMatrix2d b) |
| str | __repr__ (self) |
| typing.Any | __rlshift__ (self, typing.Any mat) |
| Matrix2d | __rmul__ (self, float b) |
| Matrix2d | __sub__ (self, ConstMatrix2d b) |
| Matrix2d | __truediv__ (self, float a) |
| Vector2d | col (self, int i) |
| float | det (self) |
| Matrix2d | inverse (self) |
| float | norm (self) |
| float | normSq (self) |
| float | trace (self) |
| Matrix2d | transposed (self) |
| ConstVector2d | x (self) |
| ConstVector2d | y (self) |
Static Public Member Functions | |
| Matrix2d | fromColumns (ConstVector2d x, ConstVector2d y) |
| Matrix2d | fromRows (ConstVector2d x, ConstVector2d y) |
| Matrix2d | identity () |
| Matrix2d | rotation (float angle) |
| Matrix2d | rotation (ConstVector2d from_, ConstVector2d to) |
| Matrix2d | scale (float s) |
| Matrix2d | scale (float sx, float sy) |
| Matrix2d | scale (ConstVector2d s) |
| Matrix2d | zero () |
Static Protected Attributes | |
| typing | _offsetof_x = 0 |
| typing | _offsetof_y = 16 |
Generated from: MR::Matrix2d Aliases: AffineXf_Vector2d_M, Vector2_double_MatrixType arbitrary 2x2 matrix
| mrmeshpy.ConstMatrix2d.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ConstMatrix2d) -> None 2. __init__(self: meshlib.mrmeshpy.ConstMatrix2d, x: meshlib.mrmeshpy.ConstVector2d, y: meshlib.mrmeshpy.ConstVector2d) -> None initializes matrix from its 2 rows 3. __init__(self: meshlib.mrmeshpy.ConstMatrix2d, arg0: meshlib.mrmeshpy.Matrix2d) -> None Implicit copy constructor. 4. __init__(self: meshlib.mrmeshpy.ConstMatrix2d, : meshlib.mrmeshpy.Matrix2d) -> None
| Matrix2d mrmeshpy.ConstMatrix2d.__add__ | ( | self, | |
| ConstMatrix2d | 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.ConstMatrix2d.__eq__ | ( | self, | |
| ConstMatrix2d | b ) |
| ConstVector2d mrmeshpy.ConstMatrix2d.__getitem__ | ( | self, | |
| int | row ) |
row access
| Matrix2d mrmeshpy.ConstMatrix2d.__mul__ | ( | self, | |
| ConstMatrix2d | b ) |
product of two matrices
| Vector2d mrmeshpy.ConstMatrix2d.__mul__ | ( | self, | |
| ConstVector2d | b ) |
x = a * b
| Matrix2d mrmeshpy.ConstMatrix2d.__mul__ | ( | self, | |
| float | a ) |
| bool mrmeshpy.ConstMatrix2d.__ne__ | ( | self, | |
| ConstMatrix2d | b ) |
| str mrmeshpy.ConstMatrix2d.__repr__ | ( | self | ) |
| typing.Any mrmeshpy.ConstMatrix2d.__rlshift__ | ( | self, | |
| typing.Any | mat ) |
| Matrix2d mrmeshpy.ConstMatrix2d.__rmul__ | ( | self, | |
| float | b ) |
| Matrix2d mrmeshpy.ConstMatrix2d.__sub__ | ( | self, | |
| ConstMatrix2d | b ) |
| Matrix2d mrmeshpy.ConstMatrix2d.__truediv__ | ( | self, | |
| float | a ) |
| Vector2d mrmeshpy.ConstMatrix2d.col | ( | self, | |
| int | i ) |
column access
| float mrmeshpy.ConstMatrix2d.det | ( | self | ) |
computes determinant of the matrix
|
static |
constructs a matrix from its 2 columns; use this method to get the matrix that transforms basis vectors ( plusX, plusY ) into vectors ( x, y ) respectively
|
static |
constructs a matrix from its 2 rows
|
static |
| Matrix2d mrmeshpy.ConstMatrix2d.inverse | ( | self | ) |
computes inverse matrix
| float mrmeshpy.ConstMatrix2d.norm | ( | self | ) |
| float mrmeshpy.ConstMatrix2d.normSq | ( | self | ) |
compute sum of squared matrix elements
|
static |
creates matrix representing rotation that after application to (from) makes (to) vector
|
static |
creates matrix representing rotation around origin on given angle
|
static |
|
static |
returns a matrix that scales uniformly
|
static |
returns a matrix that has its own scale along each axis
| float mrmeshpy.ConstMatrix2d.trace | ( | self | ) |
computes trace of the matrix
| Matrix2d mrmeshpy.ConstMatrix2d.transposed | ( | self | ) |
computes transposed matrix
| ConstVector2d mrmeshpy.ConstMatrix2d.x | ( | self | ) |
rows, identity matrix by default
Reimplemented in mrmeshpy.Matrix2d, and mrmeshpy.Matrix2d.
| ConstVector2d mrmeshpy.ConstMatrix2d.y | ( | self | ) |
Reimplemented in mrmeshpy.Matrix2d, and mrmeshpy.Matrix2d.
|
static |
|
staticprotected |
|
staticprotected |