MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.Matrix2i Class Reference

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)
 
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
 

Detailed Description

Generated from:  MR::Matrix2i
Aliases:  Vector2_int_MatrixType

arbitrary 2x2 matrix
\\ingroup MatrixGroup

Constructor & Destructor Documentation

◆ __init__() [1/3]

None mrmeshpy.Matrix2i.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/3]

None mrmeshpy.Matrix2i.__init__ ( self)

◆ __init__() [3/3]

None mrmeshpy.Matrix2i.__init__ ( self,
Vector2i x,
Vector2i y )
initializes matrix from its 2 rows

Member Function Documentation

◆ __add__()

Matrix2i mrmeshpy.Matrix2i.__add__ ( self,
Matrix2i 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.Matrix2i.__eq__ ( self,
Matrix2i b )

◆ __getitem__() [1/2]

Vector2i mrmeshpy.Matrix2i.__getitem__ ( self,
int row )
row access

◆ __getitem__() [2/2]

Vector2i mrmeshpy.Matrix2i.__getitem__ ( self,
int row )

◆ __iadd__()

Matrix2i mrmeshpy.Matrix2i.__iadd__ ( self,
Matrix2i b )

◆ __imatmul__()

Matrix2i mrmeshpy.Matrix2i.__imatmul__ ( self,
int b )

◆ __isub__()

Matrix2i mrmeshpy.Matrix2i.__isub__ ( self,
Matrix2i b )

◆ __itruediv__()

Matrix2i mrmeshpy.Matrix2i.__itruediv__ ( self,
int b )

◆ __mul__() [1/3]

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

◆ __mul__() [2/3]

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

◆ __mul__() [3/3]

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

◆ __ne__()

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

◆ __rmul__()

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

◆ __setitem__()

None mrmeshpy.Matrix2i.__setitem__ ( self,
int arg0,
Vector2i arg1 )

◆ __sub__()

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

◆ __truediv__()

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

◆ col()

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

◆ det()

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

◆ fromColumns()

Matrix2i mrmeshpy.Matrix2i.fromColumns ( Vector2i x,
Vector2i 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.Matrix2i.fromRows ( Vector2i x,
Vector2i y )
static
constructs a matrix from its 2 rows

◆ identity()

Matrix2i mrmeshpy.Matrix2i.identity ( )
static

◆ norm()

float mrmeshpy.Matrix2i.norm ( self)

◆ normSq()

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

◆ operator() [1/2]

Matrix2i mrmeshpy.Matrix2i.operator ( * args,
** kwargs )
static

◆ operator() [2/2]

Matrix2i mrmeshpy.Matrix2i.operator ( * args,
** kwargs )
static

◆ scale() [1/3]

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

◆ scale() [2/3]

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

◆ scale() [3/3]

Matrix2i mrmeshpy.Matrix2i.scale ( Vector2i s)
static

◆ trace()

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

◆ transposed()

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

◆ x() [1/2]

Vector2i mrmeshpy.Matrix2i.x ( self)
rows, identity matrix by default

◆ x() [2/2]

None mrmeshpy.Matrix2i.x ( self,
Vector2i arg1 )

◆ zero()

Matrix2i mrmeshpy.Matrix2i.zero ( )
static

Member Data Documentation

◆ _offsetof_x

typing mrmeshpy.Matrix2i._offsetof_x = 0
staticprotected

◆ _offsetof_y

typing mrmeshpy.Matrix2i._offsetof_y = 8
staticprotected

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