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

Public Member Functions

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

Static Public Member Functions

Matrix4i identity ()
Matrix4i scale (int s)
Matrix4i zero ()

Static Protected Attributes

typing _offsetof_w = 48
typing _offsetof_x = 0
typing _offsetof_y = 16
typing _offsetof_z = 32

Detailed Description

Generated from:  MR::Matrix4i
Aliases:  Vector4_int_MatrixType

arbitrary 4x4 matrix

Constructor & Destructor Documentation

◆ __init__()

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

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

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

initializes matrix from 4 row-vectors

3. __init__(self: meshlib.mrmeshpy.ConstMatrix4i, r: meshlib.mrmeshpy.ConstMatrix3i, t: meshlib.mrmeshpy.ConstVector3i) -> None

construct from rotation matrix and translation vector

4. __init__(self: meshlib.mrmeshpy.ConstMatrix4i, arg0: meshlib.mrmeshpy.Matrix4i) -> None

Implicit copy constructor.

5. __init__(self: meshlib.mrmeshpy.ConstMatrix4i, : meshlib.mrmeshpy.Matrix4i) -> None

Member Function Documentation

◆ __add__()

Matrix4i mrmeshpy.ConstMatrix4i.__add__ ( self,
ConstMatrix4i 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__()

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

◆ __eq__()

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

◆ __getitem__()

ConstVector4i mrmeshpy.ConstMatrix4i.__getitem__ ( self,
int row )
row access

◆ __mul__() [1/3]

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

◆ __mul__() [2/3]

Vector4i mrmeshpy.ConstMatrix4i.__mul__ ( self,
ConstVector4i b )
x = a * b

◆ __mul__() [3/3]

Matrix4i mrmeshpy.ConstMatrix4i.__mul__ ( self,
int a )

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.ConstMatrix4i.__repr__ ( self)

◆ __rlshift__()

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

◆ __rmul__()

Matrix4i mrmeshpy.ConstMatrix4i.__rmul__ ( self,
int b )

◆ __sub__()

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

◆ __truediv__()

Matrix4i mrmeshpy.ConstMatrix4i.__truediv__ ( self,
int a )

◆ col()

Vector4i mrmeshpy.ConstMatrix4i.col ( self,
int i )
column access

◆ data()

int mrmeshpy.ConstMatrix4i.data ( self)

Reimplemented in mrmeshpy.Matrix4i, and mrmeshpy.Matrix4i.

◆ det()

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

◆ getRotation()

Matrix3i mrmeshpy.ConstMatrix4i.getRotation ( self)

◆ getTranslation()

Vector3i mrmeshpy.ConstMatrix4i.getTranslation ( self)

◆ identity()

Matrix4i mrmeshpy.ConstMatrix4i.identity ( )
static

◆ norm()

float mrmeshpy.ConstMatrix4i.norm ( self)

◆ normSq()

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

◆ scale()

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

◆ submatrix3()

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

◆ trace()

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

◆ transposed()

Matrix4i mrmeshpy.ConstMatrix4i.transposed ( self)
computes transposed matrix

◆ w()

ConstVector4i mrmeshpy.ConstMatrix4i.w ( self)

Reimplemented in mrmeshpy.Matrix4i, and mrmeshpy.Matrix4i.

◆ x()

ConstVector4i mrmeshpy.ConstMatrix4i.x ( self)
rows, identity matrix by default

Reimplemented in mrmeshpy.Matrix4i, and mrmeshpy.Matrix4i.

◆ y()

ConstVector4i mrmeshpy.ConstMatrix4i.y ( self)

Reimplemented in mrmeshpy.Matrix4i, and mrmeshpy.Matrix4i.

◆ z()

ConstVector4i mrmeshpy.ConstMatrix4i.z ( self)

Reimplemented in mrmeshpy.Matrix4i, and mrmeshpy.Matrix4i.

◆ zero()

Matrix4i mrmeshpy.ConstMatrix4i.zero ( )
static

Member Data Documentation

◆ _offsetof_w

typing mrmeshpy.ConstMatrix4i._offsetof_w = 48
staticprotected

◆ _offsetof_x

typing mrmeshpy.ConstMatrix4i._offsetof_x = 0
staticprotected

◆ _offsetof_y

typing mrmeshpy.ConstMatrix4i._offsetof_y = 16
staticprotected

◆ _offsetof_z

typing mrmeshpy.ConstMatrix4i._offsetof_z = 32
staticprotected

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