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

Public Member Functions

Matrix4i __add__ (self, ConstMatrix4b b)
bool __call__ (self, int row, int col)
bool __eq__ (self, ConstMatrix4b b)
ConstVector4b __getitem__ (self, int row)
 __init__ (self, *args, **kwargs)
Matrix4i __mul__ (self, bool a)
Vector4i __mul__ (self, ConstVector4b b)
Matrix4i __mul__ (self, ConstMatrix4b b)
bool __ne__ (self, ConstMatrix4b b)
str __repr__ (self)
typing.Any __rlshift__ (self, typing.Any mat)
Matrix4i __rmul__ (self, bool b)
Matrix4i __sub__ (self, ConstMatrix4b b)
Matrix4i __truediv__ (self, bool a)
Vector4b col (self, int i)
bool data (self)
bool det (self)
Matrix3b getRotation (self)
Vector3b getTranslation (self)
float norm (self)
bool normSq (self)
Matrix3b submatrix3 (self, int i, int j)
bool trace (self)
Matrix4b transposed (self)
ConstVector4b w (self)
ConstVector4b x (self)
ConstVector4b y (self)
ConstVector4b z (self)

Static Public Member Functions

Matrix4b identity ()
Matrix4b scale (bool s)
Matrix4b zero ()

Static Protected Attributes

typing _offsetof_w = 12
typing _offsetof_x = 0
typing _offsetof_y = 4
typing _offsetof_z = 8

Detailed Description

Generated from:  MR::Matrix4b
Aliases:  Vector4_bool_MatrixType

arbitrary 4x4 matrix

Constructor & Destructor Documentation

◆ __init__()

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

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

2. __init__(self: meshlib.mrmeshpy.ConstMatrix4b, x: meshlib.mrmeshpy.ConstVector4b, y: meshlib.mrmeshpy.ConstVector4b, z: meshlib.mrmeshpy.ConstVector4b, w: meshlib.mrmeshpy.ConstVector4b) -> None

initializes matrix from 4 row-vectors

3. __init__(self: meshlib.mrmeshpy.ConstMatrix4b, r: meshlib.mrmeshpy.ConstMatrix3b, t: meshlib.mrmeshpy.ConstVector3b) -> None

construct from rotation matrix and translation vector

4. __init__(self: meshlib.mrmeshpy.ConstMatrix4b, arg0: meshlib.mrmeshpy.Matrix4b) -> None

Implicit copy constructor.

5. __init__(self: meshlib.mrmeshpy.ConstMatrix4b, : meshlib.mrmeshpy.Matrix4b) -> None

Member Function Documentation

◆ __add__()

Matrix4i mrmeshpy.ConstMatrix4b.__add__ ( self,
ConstMatrix4b 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.

◆ __call__()

bool mrmeshpy.ConstMatrix4b.__call__ ( self,
int row,
int col )
element access

◆ __eq__()

bool mrmeshpy.ConstMatrix4b.__eq__ ( self,
ConstMatrix4b b )

◆ __getitem__()

ConstVector4b mrmeshpy.ConstMatrix4b.__getitem__ ( self,
int row )
row access

◆ __mul__() [1/3]

Matrix4i mrmeshpy.ConstMatrix4b.__mul__ ( self,
bool a )

◆ __mul__() [2/3]

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

◆ __mul__() [3/3]

Vector4i mrmeshpy.ConstMatrix4b.__mul__ ( self,
ConstVector4b b )
x = a * b

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.ConstMatrix4b.__repr__ ( self)

◆ __rlshift__()

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

◆ __rmul__()

Matrix4i mrmeshpy.ConstMatrix4b.__rmul__ ( self,
bool b )

◆ __sub__()

Matrix4i mrmeshpy.ConstMatrix4b.__sub__ ( self,
ConstMatrix4b b )

◆ __truediv__()

Matrix4i mrmeshpy.ConstMatrix4b.__truediv__ ( self,
bool a )

◆ col()

Vector4b mrmeshpy.ConstMatrix4b.col ( self,
int i )
column access

◆ data()

bool mrmeshpy.ConstMatrix4b.data ( self)

Reimplemented in mrmeshpy.Matrix4b, and mrmeshpy.Matrix4b.

◆ det()

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

◆ getRotation()

Matrix3b mrmeshpy.ConstMatrix4b.getRotation ( self)

◆ getTranslation()

Vector3b mrmeshpy.ConstMatrix4b.getTranslation ( self)

◆ identity()

Matrix4b mrmeshpy.ConstMatrix4b.identity ( )
static

◆ norm()

float mrmeshpy.ConstMatrix4b.norm ( self)

◆ normSq()

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

◆ scale()

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

◆ submatrix3()

Matrix3b mrmeshpy.ConstMatrix4b.submatrix3 ( self,
int i,
int j )
computes submatrix of the matrix with excluded i-th row and j-th column

◆ trace()

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

◆ transposed()

Matrix4b mrmeshpy.ConstMatrix4b.transposed ( self)
computes transposed matrix

◆ w()

ConstVector4b mrmeshpy.ConstMatrix4b.w ( self)

Reimplemented in mrmeshpy.Matrix4b, and mrmeshpy.Matrix4b.

◆ x()

ConstVector4b mrmeshpy.ConstMatrix4b.x ( self)
rows, identity matrix by default

Reimplemented in mrmeshpy.Matrix4b, and mrmeshpy.Matrix4b.

◆ y()

ConstVector4b mrmeshpy.ConstMatrix4b.y ( self)

Reimplemented in mrmeshpy.Matrix4b, and mrmeshpy.Matrix4b.

◆ z()

ConstVector4b mrmeshpy.ConstMatrix4b.z ( self)

Reimplemented in mrmeshpy.Matrix4b, and mrmeshpy.Matrix4b.

◆ zero()

Matrix4b mrmeshpy.ConstMatrix4b.zero ( )
static

Member Data Documentation

◆ _offsetof_w

typing mrmeshpy.ConstMatrix4b._offsetof_w = 12
staticprotected

◆ _offsetof_x

typing mrmeshpy.ConstMatrix4b._offsetof_x = 0
staticprotected

◆ _offsetof_y

typing mrmeshpy.ConstMatrix4b._offsetof_y = 4
staticprotected

◆ _offsetof_z

typing mrmeshpy.ConstMatrix4b._offsetof_z = 8
staticprotected

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