MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.ConstMatrix2i:

Public Member Functions

Matrix2i __add__ (self, ConstMatrix2i b)
bool __eq__ (self, ConstMatrix2i b)
ConstVector2i __getitem__ (self, int row)
 __init__ (self, *args, **kwargs)
Matrix2i __mul__ (self, int a)
Vector2i __mul__ (self, ConstVector2i b)
Matrix2i __mul__ (self, ConstMatrix2i b)
bool __ne__ (self, ConstMatrix2i b)
str __repr__ (self)
typing.Any __rlshift__ (self, typing.Any mat)
Matrix2i __rmul__ (self, int b)
Matrix2i __sub__ (self, ConstMatrix2i 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)
ConstVector2i x (self)
ConstVector2i y (self)

Static Public Member Functions

Matrix2i fromColumns (ConstVector2i x, ConstVector2i y)
Matrix2i fromRows (ConstVector2i x, ConstVector2i y)
Matrix2i identity ()
Matrix2i scale (int s)
Matrix2i scale (int sx, int sy)
Matrix2i scale (ConstVector2i s)
Matrix2i zero ()

Static Protected Attributes

typing _offsetof_x = 0
typing _offsetof_y = 8

Detailed Description

Generated from:  MR::Matrix2i
Aliases:  Vector2_int_MatrixType

arbitrary 2x2 matrix

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstMatrix2i.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstMatrix2i) -> None

2. __init__(self: meshlib.mrmeshpy.ConstMatrix2i, x: meshlib.mrmeshpy.ConstVector2i, y: meshlib.mrmeshpy.ConstVector2i) -> None

initializes matrix from its 2 rows

3. __init__(self: meshlib.mrmeshpy.ConstMatrix2i, arg0: meshlib.mrmeshpy.Matrix2i) -> None

Implicit copy constructor.

4. __init__(self: meshlib.mrmeshpy.ConstMatrix2i, : meshlib.mrmeshpy.Matrix2i) -> None

Member Function Documentation

◆ __add__()

Matrix2i mrmeshpy.ConstMatrix2i.__add__ ( self,
ConstMatrix2i 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.

◆ __eq__()

bool mrmeshpy.ConstMatrix2i.__eq__ ( self,
ConstMatrix2i b )

◆ __getitem__()

ConstVector2i mrmeshpy.ConstMatrix2i.__getitem__ ( self,
int row )
row access

◆ __mul__() [1/3]

Matrix2i mrmeshpy.ConstMatrix2i.__mul__ ( self,
ConstMatrix2i b )
product of two matrices

◆ __mul__() [2/3]

Vector2i mrmeshpy.ConstMatrix2i.__mul__ ( self,
ConstVector2i b )
x = a * b

◆ __mul__() [3/3]

Matrix2i mrmeshpy.ConstMatrix2i.__mul__ ( self,
int a )

◆ __ne__()

bool mrmeshpy.ConstMatrix2i.__ne__ ( self,
ConstMatrix2i b )

◆ __repr__()

str mrmeshpy.ConstMatrix2i.__repr__ ( self)

◆ __rlshift__()

typing.Any mrmeshpy.ConstMatrix2i.__rlshift__ ( self,
typing.Any mat )

◆ __rmul__()

Matrix2i mrmeshpy.ConstMatrix2i.__rmul__ ( self,
int b )

◆ __sub__()

Matrix2i mrmeshpy.ConstMatrix2i.__sub__ ( self,
ConstMatrix2i b )

◆ __truediv__()

Matrix2i mrmeshpy.ConstMatrix2i.__truediv__ ( self,
int a )

◆ col()

Vector2i mrmeshpy.ConstMatrix2i.col ( self,
int i )
column access

◆ det()

int mrmeshpy.ConstMatrix2i.det ( self)
computes determinant of the matrix

◆ fromColumns()

Matrix2i mrmeshpy.ConstMatrix2i.fromColumns ( ConstVector2i x,
ConstVector2i y )
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

◆ fromRows()

Matrix2i mrmeshpy.ConstMatrix2i.fromRows ( ConstVector2i x,
ConstVector2i y )
static
constructs a matrix from its 2 rows

◆ identity()

Matrix2i mrmeshpy.ConstMatrix2i.identity ( )
static

◆ norm()

float mrmeshpy.ConstMatrix2i.norm ( self)

◆ normSq()

int mrmeshpy.ConstMatrix2i.normSq ( self)
compute sum of squared matrix elements

◆ scale() [1/3]

Matrix2i mrmeshpy.ConstMatrix2i.scale ( ConstVector2i s)
static

◆ scale() [2/3]

Matrix2i mrmeshpy.ConstMatrix2i.scale ( int s)
static
returns a matrix that scales uniformly

◆ scale() [3/3]

Matrix2i mrmeshpy.ConstMatrix2i.scale ( int sx,
int sy )
static
returns a matrix that has its own scale along each axis

◆ trace()

int mrmeshpy.ConstMatrix2i.trace ( self)
computes trace of the matrix

◆ transposed()

Matrix2i mrmeshpy.ConstMatrix2i.transposed ( self)
computes transposed matrix

◆ x()

ConstVector2i mrmeshpy.ConstMatrix2i.x ( self)
rows, identity matrix by default

Reimplemented in mrmeshpy.Matrix2i, and mrmeshpy.Matrix2i.

◆ y()

ConstVector2i mrmeshpy.ConstMatrix2i.y ( self)

Reimplemented in mrmeshpy.Matrix2i, and mrmeshpy.Matrix2i.

◆ zero()

Matrix2i mrmeshpy.ConstMatrix2i.zero ( )
static

Member Data Documentation

◆ _offsetof_x

typing mrmeshpy.ConstMatrix2i._offsetof_x = 0
staticprotected

◆ _offsetof_y

typing mrmeshpy.ConstMatrix2i._offsetof_y = 8
staticprotected

The documentation for this class was generated from the following file: