Public Member Functions | |
| Matrix2f | __add__ (self, Matrix2f b) |
| bool | __eq__ (self, Matrix2f b) |
| Vector2f | __getitem__ (self, int row) |
| Vector2f | __getitem__ (self, int row) |
| Matrix2f | __iadd__ (self, Matrix2f b) |
| Matrix2f | __imatmul__ (self, float b) |
| None | __init__ (self) |
| None | __init__ (self, Vector2f x, Vector2f y) |
| None | __init__ (self, Matrix2f arg0) |
| Matrix2f | __isub__ (self, Matrix2f b) |
| Matrix2f | __itruediv__ (self, float b) |
| Matrix2f | __mul__ (self, float a) |
| Vector2f | __mul__ (self, Vector2f b) |
| Matrix2f | __mul__ (self, Matrix2f b) |
| bool | __ne__ (self, Matrix2f b) |
| Matrix2f | __rmul__ (self, float b) |
| None | __setitem__ (self, int arg0, Vector2f arg1) |
| Matrix2f | __sub__ (self, Matrix2f b) |
| Matrix2f | __truediv__ (self, float a) |
| Vector2f | col (self, int i) |
| float | det (self) |
| Matrix2f | inverse (self) |
| float | norm (self) |
| float | normSq (self) |
| float | trace (self) |
| Matrix2f | transposed (self) |
| Vector2f | x (self) |
| None | x (self, Vector2f arg1) |
Static Public Member Functions | |
| None | __init__ (*args, **kwargs) |
| Matrix2f | fromColumns (Vector2f x, Vector2f y) |
| Matrix2f | fromRows (Vector2f x, Vector2f y) |
| Matrix2f | identity () |
| Matrix2f | operator (*args, **kwargs) |
| Matrix2f | operator (*args, **kwargs) |
| Matrix2f | rotation (float angle) |
| Matrix2f | rotation (Vector2f from_, Vector2f to) |
| Matrix2f | scale (float s) |
| Matrix2f | scale (float sx, float sy) |
| Matrix2f | scale (Vector2f s) |
| Matrix2f | zero () |
Static Protected Attributes | |
| typing | _offsetof_x = 0 |
| typing | _offsetof_y = 8 |
Generated from: MR::Matrix2f Aliases: AffineXf_Vector2f_M, Vector2_float_MatrixType arbitrary 2x2 matrix
|
static |
| None mrmeshpy.Matrix2f.__init__ | ( | self | ) |
| None mrmeshpy.Matrix2f.__init__ | ( | self, | |
| Matrix2f | 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.Matrix2f.__eq__ | ( | self, | |
| Matrix2f | b ) |
| Vector2f mrmeshpy.Matrix2f.__getitem__ | ( | self, | |
| int | row ) |
row access
| Vector2f mrmeshpy.Matrix2f.__getitem__ | ( | self, | |
| int | row ) |
| Matrix2f mrmeshpy.Matrix2f.__imatmul__ | ( | self, | |
| float | b ) |
| Matrix2f mrmeshpy.Matrix2f.__itruediv__ | ( | self, | |
| float | b ) |
| Matrix2f mrmeshpy.Matrix2f.__mul__ | ( | self, | |
| float | a ) |
| bool mrmeshpy.Matrix2f.__ne__ | ( | self, | |
| Matrix2f | b ) |
| Matrix2f mrmeshpy.Matrix2f.__rmul__ | ( | self, | |
| float | b ) |
| None mrmeshpy.Matrix2f.__setitem__ | ( | self, | |
| int | arg0, | ||
| Vector2f | arg1 ) |
| Matrix2f mrmeshpy.Matrix2f.__truediv__ | ( | self, | |
| float | a ) |
| Vector2f mrmeshpy.Matrix2f.col | ( | self, | |
| int | i ) |
column access
| float mrmeshpy.Matrix2f.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 |
| Matrix2f mrmeshpy.Matrix2f.inverse | ( | self | ) |
computes inverse matrix
| float mrmeshpy.Matrix2f.norm | ( | self | ) |
| float mrmeshpy.Matrix2f.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.Matrix2f.trace | ( | self | ) |
computes trace of the matrix
| Matrix2f mrmeshpy.Matrix2f.transposed | ( | self | ) |
computes transposed matrix
| Vector2f mrmeshpy.Matrix2f.x | ( | self | ) |
rows, identity matrix by default
| None mrmeshpy.Matrix2f.x | ( | self, | |
| Vector2f | arg1 ) |
|
static |
|
staticprotected |
|
staticprotected |