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

Public Member Functions

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

arbitrary 2x2 matrix
\\ingroup MatrixGroup

Constructor & Destructor Documentation

◆ __init__() [1/3]

None meshlib.mrmeshpy.Matrix2b.__init__ ( self)

◆ __init__() [2/3]

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

◆ __init__() [3/3]

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

Member Function Documentation

◆ __iadd__()

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

◆ __imatmul__()

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

◆ __isub__()

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

◆ __itruediv__()

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

◆ _Subscript() [1/2]

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

◆ _Subscript() [2/2]

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

◆ col()

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

◆ det()

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

◆ fromColumns()

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

◆ identity()

Matrix2b meshlib.mrmeshpy.Matrix2b.identity ( )
static

◆ norm()

float meshlib.mrmeshpy.Matrix2b.norm ( self)

◆ normSq()

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

◆ scale() [1/3]

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

◆ scale() [2/3]

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

◆ scale() [3/3]

Matrix2b meshlib.mrmeshpy.Matrix2b.scale ( Vector2b s)
static

◆ trace()

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

◆ transposed()

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

◆ x() [1/2]

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

◆ x() [2/2]

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

◆ zero()

Matrix2b meshlib.mrmeshpy.Matrix2b.zero ( )
static

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