Public Member Functions | |
| Matrix2d | __add__ (self, Matrix2d b) |
| bool | __eq__ (self, Matrix2d b) |
| Vector2d | __getitem__ (self, int row) |
| Vector2d | __getitem__ (self, int row) |
| Matrix2d | __iadd__ (self, Matrix2d b) |
| Matrix2d | __imatmul__ (self, float b) |
| None | __init__ (self) |
| None | __init__ (self, Vector2d x, Vector2d y) |
| None | __init__ (self, Matrix2d arg0) |
| Matrix2d | __isub__ (self, Matrix2d b) |
| Matrix2d | __itruediv__ (self, float b) |
| Matrix2d | __mul__ (self, float a) |
| Vector2d | __mul__ (self, Vector2d b) |
| Matrix2d | __mul__ (self, Matrix2d b) |
| bool | __ne__ (self, Matrix2d b) |
| Matrix2d | __rmul__ (self, float b) |
| None | __setitem__ (self, int arg0, Vector2d arg1) |
| Matrix2d | __sub__ (self, Matrix2d 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) |
| Vector2d | x (self) |
| None | x (self, Vector2d arg1) |
Static Public Member Functions | |
| None | __init__ (*args, **kwargs) |
| Matrix2d | fromColumns (Vector2d x, Vector2d y) |
| Matrix2d | fromRows (Vector2d x, Vector2d y) |
| Matrix2d | identity () |
| Matrix2d | operator (*args, **kwargs) |
| Matrix2d | operator (*args, **kwargs) |
| Matrix2d | rotation (float angle) |
| Matrix2d | rotation (Vector2d from_, Vector2d to) |
| Matrix2d | scale (float s) |
| Matrix2d | scale (float sx, float sy) |
| Matrix2d | scale (Vector2d 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
|
static |
| None mrmeshpy.Matrix2d.__init__ | ( | self | ) |
| None mrmeshpy.Matrix2d.__init__ | ( | self, | |
| Matrix2d | 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.Matrix2d.__eq__ | ( | self, | |
| Matrix2d | b ) |
| Vector2d mrmeshpy.Matrix2d.__getitem__ | ( | self, | |
| int | row ) |
row access
| Vector2d mrmeshpy.Matrix2d.__getitem__ | ( | self, | |
| int | row ) |
| Matrix2d mrmeshpy.Matrix2d.__imatmul__ | ( | self, | |
| float | b ) |
| Matrix2d mrmeshpy.Matrix2d.__itruediv__ | ( | self, | |
| float | b ) |
| Matrix2d mrmeshpy.Matrix2d.__mul__ | ( | self, | |
| float | a ) |
| bool mrmeshpy.Matrix2d.__ne__ | ( | self, | |
| Matrix2d | b ) |
| Matrix2d mrmeshpy.Matrix2d.__rmul__ | ( | self, | |
| float | b ) |
| None mrmeshpy.Matrix2d.__setitem__ | ( | self, | |
| int | arg0, | ||
| Vector2d | arg1 ) |
| Matrix2d mrmeshpy.Matrix2d.__truediv__ | ( | self, | |
| float | a ) |
| Vector2d mrmeshpy.Matrix2d.col | ( | self, | |
| int | i ) |
column access
| float mrmeshpy.Matrix2d.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 |
| Matrix2d mrmeshpy.Matrix2d.inverse | ( | self | ) |
computes inverse matrix
| float mrmeshpy.Matrix2d.norm | ( | self | ) |
| float mrmeshpy.Matrix2d.normSq | ( | self | ) |
compute sum of squared matrix elements
|
static |
|
static |
|
static |
creates matrix representing rotation around origin on given angle
creates matrix representing rotation that after application to (from) makes (to) vector
|
static |
returns a matrix that scales uniformly
|
static |
returns a matrix that has its own scale along each axis
| float mrmeshpy.Matrix2d.trace | ( | self | ) |
computes trace of the matrix
| Matrix2d mrmeshpy.Matrix2d.transposed | ( | self | ) |
computes transposed matrix
| Vector2d mrmeshpy.Matrix2d.x | ( | self | ) |
rows, identity matrix by default
| None mrmeshpy.Matrix2d.x | ( | self, | |
| Vector2d | arg1 ) |
|
static |
|
staticprotected |
|
staticprotected |