Public Member Functions | |
| Matrix2f | __add__ (self, ConstMatrix2f b) |
| bool | __eq__ (self, ConstMatrix2f b) |
| ConstVector2f | __getitem__ (self, int row) |
| __init__ (self, *args, **kwargs) | |
| Matrix2f | __mul__ (self, float a) |
| Vector2f | __mul__ (self, ConstVector2f b) |
| Matrix2f | __mul__ (self, ConstMatrix2f b) |
| bool | __ne__ (self, ConstMatrix2f b) |
| str | __repr__ (self) |
| typing.Any | __rlshift__ (self, typing.Any mat) |
| Matrix2f | __rmul__ (self, float b) |
| Matrix2f | __sub__ (self, ConstMatrix2f 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) |
| ConstVector2f | x (self) |
| ConstVector2f | y (self) |
Static Public Member Functions | |
| Matrix2f | fromColumns (ConstVector2f x, ConstVector2f y) |
| Matrix2f | fromRows (ConstVector2f x, ConstVector2f y) |
| Matrix2f | identity () |
| Matrix2f | rotation (float angle) |
| Matrix2f | rotation (ConstVector2f from_, ConstVector2f to) |
| Matrix2f | scale (float s) |
| Matrix2f | scale (float sx, float sy) |
| Matrix2f | scale (ConstVector2f 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
| mrmeshpy.ConstMatrix2f.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ConstMatrix2f) -> None 2. __init__(self: meshlib.mrmeshpy.ConstMatrix2f, x: meshlib.mrmeshpy.ConstVector2f, y: meshlib.mrmeshpy.ConstVector2f) -> None initializes matrix from its 2 rows 3. __init__(self: meshlib.mrmeshpy.ConstMatrix2f, arg0: meshlib.mrmeshpy.Matrix2f) -> None Implicit copy constructor. 4. __init__(self: meshlib.mrmeshpy.ConstMatrix2f, : meshlib.mrmeshpy.Matrix2f) -> None
| Matrix2f mrmeshpy.ConstMatrix2f.__add__ | ( | self, | |
| ConstMatrix2f | 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.ConstMatrix2f.__eq__ | ( | self, | |
| ConstMatrix2f | b ) |
| ConstVector2f mrmeshpy.ConstMatrix2f.__getitem__ | ( | self, | |
| int | row ) |
row access
| Matrix2f mrmeshpy.ConstMatrix2f.__mul__ | ( | self, | |
| ConstMatrix2f | b ) |
product of two matrices
| Vector2f mrmeshpy.ConstMatrix2f.__mul__ | ( | self, | |
| ConstVector2f | b ) |
x = a * b
| Matrix2f mrmeshpy.ConstMatrix2f.__mul__ | ( | self, | |
| float | a ) |
| bool mrmeshpy.ConstMatrix2f.__ne__ | ( | self, | |
| ConstMatrix2f | b ) |
| str mrmeshpy.ConstMatrix2f.__repr__ | ( | self | ) |
| typing.Any mrmeshpy.ConstMatrix2f.__rlshift__ | ( | self, | |
| typing.Any | mat ) |
| Matrix2f mrmeshpy.ConstMatrix2f.__rmul__ | ( | self, | |
| float | b ) |
| Matrix2f mrmeshpy.ConstMatrix2f.__sub__ | ( | self, | |
| ConstMatrix2f | b ) |
| Matrix2f mrmeshpy.ConstMatrix2f.__truediv__ | ( | self, | |
| float | a ) |
| Vector2f mrmeshpy.ConstMatrix2f.col | ( | self, | |
| int | i ) |
column access
| float mrmeshpy.ConstMatrix2f.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 |
| Matrix2f mrmeshpy.ConstMatrix2f.inverse | ( | self | ) |
computes inverse matrix
| float mrmeshpy.ConstMatrix2f.norm | ( | self | ) |
| float mrmeshpy.ConstMatrix2f.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.ConstMatrix2f.trace | ( | self | ) |
computes trace of the matrix
| Matrix2f mrmeshpy.ConstMatrix2f.transposed | ( | self | ) |
computes transposed matrix
| ConstVector2f mrmeshpy.ConstMatrix2f.x | ( | self | ) |
rows, identity matrix by default
Reimplemented in mrmeshpy.Matrix2f, and mrmeshpy.Matrix2f.
| ConstVector2f mrmeshpy.ConstMatrix2f.y | ( | self | ) |
Reimplemented in mrmeshpy.Matrix2f, and mrmeshpy.Matrix2f.
|
static |
|
staticprotected |
|
staticprotected |