Public Member Functions | |
| Matrix2i | __add__ (self, Matrix2i b) |
| bool | __eq__ (self, Matrix2i b) |
| Vector2i | __getitem__ (self, int row) |
| Vector2i | __getitem__ (self, int row) |
| Matrix2i | __iadd__ (self, Matrix2i b) |
| Matrix2i | __imatmul__ (self, int b) |
| None | __init__ (self) |
| None | __init__ (self, Vector2i x, Vector2i y) |
| None | __init__ (self, Matrix2i arg0) |
| Matrix2i | __isub__ (self, Matrix2i b) |
| Matrix2i | __itruediv__ (self, int b) |
| Matrix2i | __mul__ (self, int a) |
| Vector2i | __mul__ (self, Vector2i b) |
| Matrix2i | __mul__ (self, Matrix2i b) |
| bool | __ne__ (self, Matrix2i b) |
| Matrix2i | __rmul__ (self, int b) |
| None | __setitem__ (self, int arg0, Vector2i arg1) |
| Matrix2i | __sub__ (self, Matrix2i b) |
| Matrix2i | __truediv__ (self, int a) |
| Vector2i | col (self, int i) |
| int | det (self) |
| float | norm (self) |
| int | normSq (self) |
| int | trace (self) |
| Matrix2i | transposed (self) |
| Vector2i | x (self) |
| None | x (self, Vector2i arg1) |
Static Public Member Functions | |
| None | __init__ (*args, **kwargs) |
| Matrix2i | fromColumns (Vector2i x, Vector2i y) |
| Matrix2i | fromRows (Vector2i x, Vector2i y) |
| Matrix2i | identity () |
| Matrix2i | operator (*args, **kwargs) |
| Matrix2i | operator (*args, **kwargs) |
| Matrix2i | scale (int s) |
| Matrix2i | scale (int sx, int sy) |
| Matrix2i | scale (Vector2i s) |
| Matrix2i | zero () |
Static Protected Attributes | |
| typing | _offsetof_x = 0 |
| typing | _offsetof_y = 8 |
Generated from: MR::Matrix2i Aliases: Vector2_int_MatrixType arbitrary 2x2 matrix
|
static |
| None mrmeshpy.Matrix2i.__init__ | ( | self | ) |
| None mrmeshpy.Matrix2i.__init__ | ( | self, | |
| Matrix2i | arg0 ) |
Implicit copy constructor.
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.Matrix2i.__eq__ | ( | self, | |
| Matrix2i | b ) |
| Vector2i mrmeshpy.Matrix2i.__getitem__ | ( | self, | |
| int | row ) |
row access
| Vector2i mrmeshpy.Matrix2i.__getitem__ | ( | self, | |
| int | row ) |
| Matrix2i mrmeshpy.Matrix2i.__imatmul__ | ( | self, | |
| int | b ) |
| Matrix2i mrmeshpy.Matrix2i.__itruediv__ | ( | self, | |
| int | b ) |
| Matrix2i mrmeshpy.Matrix2i.__mul__ | ( | self, | |
| int | a ) |
| bool mrmeshpy.Matrix2i.__ne__ | ( | self, | |
| Matrix2i | b ) |
| Matrix2i mrmeshpy.Matrix2i.__rmul__ | ( | self, | |
| int | b ) |
| None mrmeshpy.Matrix2i.__setitem__ | ( | self, | |
| int | arg0, | ||
| Vector2i | arg1 ) |
| Matrix2i mrmeshpy.Matrix2i.__truediv__ | ( | self, | |
| int | a ) |
| Vector2i mrmeshpy.Matrix2i.col | ( | self, | |
| int | i ) |
column access
| int mrmeshpy.Matrix2i.det | ( | self | ) |
computes determinant of the matrix
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
constructs a matrix from its 2 rows
|
static |
| float mrmeshpy.Matrix2i.norm | ( | self | ) |
| int mrmeshpy.Matrix2i.normSq | ( | self | ) |
compute sum of squared matrix elements
|
static |
|
static |
|
static |
returns a matrix that scales uniformly
|
static |
returns a matrix that has its own scale along each axis
| int mrmeshpy.Matrix2i.trace | ( | self | ) |
computes trace of the matrix
| Matrix2i mrmeshpy.Matrix2i.transposed | ( | self | ) |
computes transposed matrix
| Vector2i mrmeshpy.Matrix2i.x | ( | self | ) |
rows, identity matrix by default
| None mrmeshpy.Matrix2i.x | ( | self, | |
| Vector2i | arg1 ) |
|
static |
|
staticprotected |
|
staticprotected |