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

Public Member Functions

Matrix2ll __add__ (self, Matrix2ll b)
 
bool __eq__ (self, Matrix2ll b)
 
Matrix2ll __iadd__ (self, Matrix2ll b)
 
Matrix2ll __imatmul__ (self, int b)
 
None __init__ (self)
 
None __init__ (self, Vector2ll x, Vector2ll y)
 
None __init__ (self, Matrix2ll arg0)
 
Matrix2ll __isub__ (self, Matrix2ll b)
 
Matrix2ll __itruediv__ (self, int b)
 
Matrix2ll __mul__ (self, int a)
 
Vector2ll __mul__ (self, Vector2ll b)
 
Matrix2ll __mul__ (self, Matrix2ll b)
 
bool __ne__ (self, Matrix2ll b)
 
Matrix2ll __rmul__ (self, int b)
 
Matrix2ll __sub__ (self, Matrix2ll b)
 
Matrix2ll __truediv__ (self, int a)
 
Vector2ll col (self, int i)
 
int det (self)
 
float norm (self)
 
int normSq (self)
 
int trace (self)
 
Matrix2ll transposed (self)
 
Vector2ll x (self)
 
None x (self, Vector2ll arg1)
 

Static Public Member Functions

Matrix2ll fromColumns (Vector2ll x, Vector2ll y)
 
Matrix2ll fromRows (Vector2ll x, Vector2ll y)
 
Matrix2ll identity ()
 
Matrix2ll scale (int s)
 
Matrix2ll scale (int sx, int sy)
 
Matrix2ll scale (Vector2ll s)
 
Matrix2ll zero ()
 

Protected Member Functions

Vector2ll _Subscript (self, int row)
 
Vector2ll _Subscript (self, int row)
 

Detailed Description

Generated from:  MR::Matrix2ll
Aliases:  Vector2_long_long_MatrixType

arbitrary 2x2 matrix
\\ingroup MatrixGroup

Constructor & Destructor Documentation

◆ __init__() [1/3]

None mrmeshpy.Matrix2ll.__init__ ( self)

◆ __init__() [2/3]

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

◆ __init__() [3/3]

None mrmeshpy.Matrix2ll.__init__ ( self,
Matrix2ll arg0 )
Implicit copy constructor.

Member Function Documentation

◆ __add__()

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

◆ __iadd__()

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

◆ __imatmul__()

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

◆ __isub__()

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

◆ __itruediv__()

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

◆ __mul__() [1/3]

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

◆ __mul__() [2/3]

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

◆ __mul__() [3/3]

Vector2ll mrmeshpy.Matrix2ll.__mul__ ( self,
Vector2ll b )
x = a * b

◆ __ne__()

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

◆ __rmul__()

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

◆ __sub__()

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

◆ __truediv__()

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

◆ _Subscript() [1/2]

Vector2ll mrmeshpy.Matrix2ll._Subscript ( self,
int row )
protected
row access

◆ _Subscript() [2/2]

Vector2ll mrmeshpy.Matrix2ll._Subscript ( self,
int row )
protected

◆ col()

Vector2ll mrmeshpy.Matrix2ll.col ( self,
int i )
column access

◆ det()

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

◆ fromColumns()

Matrix2ll mrmeshpy.Matrix2ll.fromColumns ( Vector2ll x,
Vector2ll 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()

Matrix2ll mrmeshpy.Matrix2ll.fromRows ( Vector2ll x,
Vector2ll y )
static
constructs a matrix from its 2 rows

◆ identity()

Matrix2ll mrmeshpy.Matrix2ll.identity ( )
static

◆ norm()

float mrmeshpy.Matrix2ll.norm ( self)

◆ normSq()

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

◆ scale() [1/3]

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

◆ scale() [2/3]

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

◆ scale() [3/3]

Matrix2ll mrmeshpy.Matrix2ll.scale ( Vector2ll s)
static

◆ trace()

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

◆ transposed()

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

◆ x() [1/2]

Vector2ll mrmeshpy.Matrix2ll.x ( self)
rows, identity matrix by default

◆ x() [2/2]

None mrmeshpy.Matrix2ll.x ( self,
Vector2ll arg1 )

◆ zero()

Matrix2ll mrmeshpy.Matrix2ll.zero ( )
static

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