Public Member Functions | |
| Matrix2i | __add__ (self, ConstMatrix2b b) |
| bool | __eq__ (self, ConstMatrix2b b) |
| ConstVector2b | __getitem__ (self, int row) |
| __init__ (self, *args, **kwargs) | |
| Matrix2i | __mul__ (self, bool a) |
| Vector2i | __mul__ (self, ConstVector2b b) |
| Matrix2i | __mul__ (self, ConstMatrix2b b) |
| bool | __ne__ (self, ConstMatrix2b b) |
| str | __repr__ (self) |
| typing.Any | __rlshift__ (self, typing.Any mat) |
| Matrix2i | __rmul__ (self, bool b) |
| Matrix2i | __sub__ (self, ConstMatrix2b b) |
| Matrix2i | __truediv__ (self, bool a) |
| Vector2b | col (self, int i) |
| bool | det (self) |
| float | norm (self) |
| bool | normSq (self) |
| bool | trace (self) |
| Matrix2b | transposed (self) |
| ConstVector2b | x (self) |
| ConstVector2b | y (self) |
Static Public Member Functions | |
| Matrix2b | fromColumns (ConstVector2b x, ConstVector2b y) |
| Matrix2b | fromRows (ConstVector2b x, ConstVector2b y) |
| Matrix2b | identity () |
| Matrix2b | scale (bool s) |
| Matrix2b | scale (bool sx, bool sy) |
| Matrix2b | scale (ConstVector2b s) |
| Matrix2b | zero () |
Static Protected Attributes | |
| typing | _offsetof_x = 0 |
| typing | _offsetof_y = 2 |
Generated from: MR::Matrix2b Aliases: Vector2_bool_MatrixType arbitrary 2x2 matrix
| mrmeshpy.ConstMatrix2b.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ConstMatrix2b) -> None 2. __init__(self: meshlib.mrmeshpy.ConstMatrix2b, x: meshlib.mrmeshpy.ConstVector2b, y: meshlib.mrmeshpy.ConstVector2b) -> None initializes matrix from its 2 rows 3. __init__(self: meshlib.mrmeshpy.ConstMatrix2b, arg0: meshlib.mrmeshpy.Matrix2b) -> None Implicit copy constructor. 4. __init__(self: meshlib.mrmeshpy.ConstMatrix2b, : meshlib.mrmeshpy.Matrix2b) -> None
| Matrix2i mrmeshpy.ConstMatrix2b.__add__ | ( | self, | |
| ConstMatrix2b | 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.ConstMatrix2b.__eq__ | ( | self, | |
| ConstMatrix2b | b ) |
| ConstVector2b mrmeshpy.ConstMatrix2b.__getitem__ | ( | self, | |
| int | row ) |
row access
| Matrix2i mrmeshpy.ConstMatrix2b.__mul__ | ( | self, | |
| bool | a ) |
| Matrix2i mrmeshpy.ConstMatrix2b.__mul__ | ( | self, | |
| ConstMatrix2b | b ) |
product of two matrices
| Vector2i mrmeshpy.ConstMatrix2b.__mul__ | ( | self, | |
| ConstVector2b | b ) |
x = a * b
| bool mrmeshpy.ConstMatrix2b.__ne__ | ( | self, | |
| ConstMatrix2b | b ) |
| str mrmeshpy.ConstMatrix2b.__repr__ | ( | self | ) |
| typing.Any mrmeshpy.ConstMatrix2b.__rlshift__ | ( | self, | |
| typing.Any | mat ) |
| Matrix2i mrmeshpy.ConstMatrix2b.__rmul__ | ( | self, | |
| bool | b ) |
| Matrix2i mrmeshpy.ConstMatrix2b.__sub__ | ( | self, | |
| ConstMatrix2b | b ) |
| Matrix2i mrmeshpy.ConstMatrix2b.__truediv__ | ( | self, | |
| bool | a ) |
| Vector2b mrmeshpy.ConstMatrix2b.col | ( | self, | |
| int | i ) |
column access
| bool mrmeshpy.ConstMatrix2b.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 |
| float mrmeshpy.ConstMatrix2b.norm | ( | self | ) |
| bool mrmeshpy.ConstMatrix2b.normSq | ( | self | ) |
compute sum of squared matrix elements
|
static |
returns a matrix that scales uniformly
|
static |
returns a matrix that has its own scale along each axis
|
static |
| bool mrmeshpy.ConstMatrix2b.trace | ( | self | ) |
computes trace of the matrix
| Matrix2b mrmeshpy.ConstMatrix2b.transposed | ( | self | ) |
computes transposed matrix
| ConstVector2b mrmeshpy.ConstMatrix2b.x | ( | self | ) |
rows, identity matrix by default
Reimplemented in mrmeshpy.Matrix2b, and mrmeshpy.Matrix2b.
| ConstVector2b mrmeshpy.ConstMatrix2b.y | ( | self | ) |
Reimplemented in mrmeshpy.Matrix2b, and mrmeshpy.Matrix2b.
|
static |
|
staticprotected |
|
staticprotected |