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

Public Member Functions

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

Static Public Member Functions

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

Static Protected Attributes

typing _offsetof_x = 0
typing _offsetof_y = 2

Detailed Description

Generated from:  MR::Matrix2b
Aliases:  Vector2_bool_MatrixType

arbitrary 2x2 matrix

Constructor & Destructor Documentation

◆ __init__()

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

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

2. __init__(self: meshlib.mrmeshpy.ConstMatrix2b, x: meshlib.mrmeshpy.ConstVector2b, y: meshlib.mrmeshpy.ConstVector2b) -> None

initializes matrix from its 2 rows

3. __init__(self: meshlib.mrmeshpy.ConstMatrix2b, arg0: meshlib.mrmeshpy.Matrix2b) -> None

Implicit copy constructor.

4. __init__(self: meshlib.mrmeshpy.ConstMatrix2b, : meshlib.mrmeshpy.Matrix2b) -> None

Member Function Documentation

◆ __add__()

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

◆ __getitem__()

ConstVector2b mrmeshpy.ConstMatrix2b.__getitem__ ( self,
int row )
row access

◆ __mul__() [1/3]

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

◆ __mul__() [2/3]

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

◆ __mul__() [3/3]

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

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.ConstMatrix2b.__repr__ ( self)

◆ __rlshift__()

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

◆ __rmul__()

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

◆ __sub__()

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

◆ __truediv__()

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

◆ col()

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

◆ det()

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

◆ fromColumns()

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

◆ identity()

Matrix2b mrmeshpy.ConstMatrix2b.identity ( )
static

◆ norm()

float mrmeshpy.ConstMatrix2b.norm ( self)

◆ normSq()

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

◆ scale() [1/3]

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

◆ scale() [2/3]

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

◆ scale() [3/3]

Matrix2b mrmeshpy.ConstMatrix2b.scale ( ConstVector2b s)
static

◆ trace()

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

◆ transposed()

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

◆ x()

ConstVector2b mrmeshpy.ConstMatrix2b.x ( self)
rows, identity matrix by default

Reimplemented in mrmeshpy.Matrix2b, and mrmeshpy.Matrix2b.

◆ y()

ConstVector2b mrmeshpy.ConstMatrix2b.y ( self)

Reimplemented in mrmeshpy.Matrix2b, and mrmeshpy.Matrix2b.

◆ zero()

Matrix2b mrmeshpy.ConstMatrix2b.zero ( )
static

Member Data Documentation

◆ _offsetof_x

typing mrmeshpy.ConstMatrix2b._offsetof_x = 0
staticprotected

◆ _offsetof_y

typing mrmeshpy.ConstMatrix2b._offsetof_y = 2
staticprotected

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