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

Public Member Functions

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

Static Public Member Functions

Matrix2b fromColumns (Vector2b x, Vector2b y)
 
Matrix2b fromRows (Vector2b x, Vector2b y)
 
Matrix2b identity ()
 
Matrix2b scale (bool s)
 
Matrix2b scale (bool sx, bool sy)
 
Matrix2b scale (Vector2b s)
 
Matrix2b zero ()
 

Protected Member Functions

Vector2b _Subscript (self, int row)
 
Vector2b _Subscript (self, int row)
 

Detailed Description

Generated from:  MR::Matrix2b
Aliases:  Vector2_bool_MatrixType

arbitrary 2x2 matrix
\\ingroup MatrixGroup

Constructor & Destructor Documentation

◆ __init__() [1/3]

None mrmeshpy.Matrix2b.__init__ ( self)

◆ __init__() [2/3]

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

◆ __init__() [3/3]

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

Member Function Documentation

◆ __add__()

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

◆ __iadd__()

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

◆ __imatmul__()

Matrix2b mrmeshpy.Matrix2b.__imatmul__ ( self,
bool b )

◆ __isub__()

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

◆ __itruediv__()

Matrix2b mrmeshpy.Matrix2b.__itruediv__ ( self,
bool b )

◆ __mul__() [1/3]

Matrix2i mrmeshpy.Matrix2b.__mul__ ( self,
bool a )

◆ __mul__() [2/3]

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

◆ __mul__() [3/3]

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

◆ __ne__()

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

◆ __rmul__()

Matrix2i mrmeshpy.Matrix2b.__rmul__ ( self,
bool b )

◆ __sub__()

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

◆ __truediv__()

Matrix2i mrmeshpy.Matrix2b.__truediv__ ( self,
bool a )

◆ _Subscript() [1/2]

Vector2b mrmeshpy.Matrix2b._Subscript ( self,
int row )
protected
row access

◆ _Subscript() [2/2]

Vector2b mrmeshpy.Matrix2b._Subscript ( self,
int row )
protected

◆ col()

Vector2b mrmeshpy.Matrix2b.col ( self,
int i )
column access

◆ det()

bool mrmeshpy.Matrix2b.det ( self)
computes determinant of the matrix

◆ fromColumns()

Matrix2b mrmeshpy.Matrix2b.fromColumns ( Vector2b x,
Vector2b 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()

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

◆ identity()

Matrix2b mrmeshpy.Matrix2b.identity ( )
static

◆ norm()

float mrmeshpy.Matrix2b.norm ( self)

◆ normSq()

bool mrmeshpy.Matrix2b.normSq ( self)
compute sum of squared matrix elements

◆ scale() [1/3]

Matrix2b mrmeshpy.Matrix2b.scale ( bool s)
static
returns a matrix that scales uniformly

◆ scale() [2/3]

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

◆ scale() [3/3]

Matrix2b mrmeshpy.Matrix2b.scale ( Vector2b s)
static

◆ trace()

bool mrmeshpy.Matrix2b.trace ( self)
computes trace of the matrix

◆ transposed()

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

◆ x() [1/2]

Vector2b mrmeshpy.Matrix2b.x ( self)
rows, identity matrix by default

◆ x() [2/2]

None mrmeshpy.Matrix2b.x ( self,
Vector2b arg1 )

◆ zero()

Matrix2b mrmeshpy.Matrix2b.zero ( )
static

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