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

Public Member Functions

Matrix4d __add__ (self, ConstMatrix4d b)
float __call__ (self, int row, int col)
Vector3d __call__ (self, ConstVector3d b)
bool __eq__ (self, ConstMatrix4d b)
ConstVector4d __getitem__ (self, int row)
 __init__ (self, *args, **kwargs)
Matrix4d __mul__ (self, float a)
Vector4d __mul__ (self, ConstVector4d b)
Matrix4d __mul__ (self, ConstMatrix4d b)
bool __ne__ (self, ConstMatrix4d b)
str __repr__ (self)
typing.Any __rlshift__ (self, typing.Any mat)
Matrix4d __rmul__ (self, float b)
Matrix4d __sub__ (self, ConstMatrix4d b)
Matrix4d __truediv__ (self, float a)
Vector4d col (self, int i)
float data (self)
float det (self)
Matrix3d getRotation (self)
Vector3d getTranslation (self)
Matrix4d inverse (self)
float norm (self)
float normSq (self)
Matrix3d submatrix3 (self, int i, int j)
float trace (self)
Matrix4d transposed (self)
ConstVector4d w (self)
ConstVector4d x (self)
ConstVector4d y (self)
ConstVector4d z (self)

Static Public Member Functions

Matrix4d identity ()
Matrix4d scale (float s)
Matrix4d zero ()

Static Protected Attributes

typing _offsetof_w = 96
typing _offsetof_x = 0
typing _offsetof_y = 32
typing _offsetof_z = 64

Detailed Description

Generated from:  MR::Matrix4d
Aliases:  Vector4_double_MatrixType

arbitrary 4x4 matrix

Constructor & Destructor Documentation

◆ __init__()

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

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

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

initializes matrix from 4 row-vectors

3. __init__(self: meshlib.mrmeshpy.ConstMatrix4d, r: meshlib.mrmeshpy.ConstMatrix3d, t: meshlib.mrmeshpy.ConstVector3d) -> None

construct from rotation matrix and translation vector

4. __init__(self: meshlib.mrmeshpy.ConstMatrix4d, xf: meshlib.mrmeshpy.ConstAffineXf3d) -> None

Currently `AffineXf3<long long>` doesn't seem to compile, so we disable this constructor for `Matrix4<long long>`, because otherwise
mrbind instantiates the entire `AffineXf3<long long>` and chokes on it.

5. __init__(self: meshlib.mrmeshpy.ConstMatrix4d, arg0: meshlib.mrmeshpy.Matrix4d) -> None

Implicit copy constructor.

6. __init__(self: meshlib.mrmeshpy.ConstMatrix4d, : meshlib.mrmeshpy.Matrix4d) -> None

Member Function Documentation

◆ __add__()

Matrix4d mrmeshpy.ConstMatrix4d.__add__ ( self,
ConstMatrix4d 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__() [1/2]

Vector3d mrmeshpy.ConstMatrix4d.__call__ ( self,
ConstVector3d b )
converts 3d-vector b in 4d-vector (b,1), multiplies matrix on it,
and assuming the result is in homogeneous coordinates returns it as 3d-vector

◆ __call__() [2/2]

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

◆ __eq__()

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

◆ __getitem__()

ConstVector4d mrmeshpy.ConstMatrix4d.__getitem__ ( self,
int row )
row access

◆ __mul__() [1/3]

Matrix4d mrmeshpy.ConstMatrix4d.__mul__ ( self,
ConstMatrix4d b )
product of two matrices

◆ __mul__() [2/3]

Vector4d mrmeshpy.ConstMatrix4d.__mul__ ( self,
ConstVector4d b )
x = a * b

◆ __mul__() [3/3]

Matrix4d mrmeshpy.ConstMatrix4d.__mul__ ( self,
float a )

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.ConstMatrix4d.__repr__ ( self)

◆ __rlshift__()

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

◆ __rmul__()

Matrix4d mrmeshpy.ConstMatrix4d.__rmul__ ( self,
float b )

◆ __sub__()

Matrix4d mrmeshpy.ConstMatrix4d.__sub__ ( self,
ConstMatrix4d b )

◆ __truediv__()

Matrix4d mrmeshpy.ConstMatrix4d.__truediv__ ( self,
float a )

◆ col()

Vector4d mrmeshpy.ConstMatrix4d.col ( self,
int i )
column access

◆ data()

float mrmeshpy.ConstMatrix4d.data ( self)

Reimplemented in mrmeshpy.Matrix4d, and mrmeshpy.Matrix4d.

◆ det()

float mrmeshpy.ConstMatrix4d.det ( self)
computes determinant of the matrix

◆ getRotation()

Matrix3d mrmeshpy.ConstMatrix4d.getRotation ( self)

◆ getTranslation()

Vector3d mrmeshpy.ConstMatrix4d.getTranslation ( self)

◆ identity()

Matrix4d mrmeshpy.ConstMatrix4d.identity ( )
static

◆ inverse()

Matrix4d mrmeshpy.ConstMatrix4d.inverse ( self)
computes inverse matrix

◆ norm()

float mrmeshpy.ConstMatrix4d.norm ( self)

◆ normSq()

float mrmeshpy.ConstMatrix4d.normSq ( self)
compute sum of squared matrix elements

◆ scale()

Matrix4d mrmeshpy.ConstMatrix4d.scale ( float s)
static
returns a matrix that scales uniformly

◆ submatrix3()

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

◆ trace()

float mrmeshpy.ConstMatrix4d.trace ( self)
computes trace of the matrix

◆ transposed()

Matrix4d mrmeshpy.ConstMatrix4d.transposed ( self)
computes transposed matrix

◆ w()

ConstVector4d mrmeshpy.ConstMatrix4d.w ( self)

Reimplemented in mrmeshpy.Matrix4d, and mrmeshpy.Matrix4d.

◆ x()

ConstVector4d mrmeshpy.ConstMatrix4d.x ( self)
rows, identity matrix by default

Reimplemented in mrmeshpy.Matrix4d, and mrmeshpy.Matrix4d.

◆ y()

ConstVector4d mrmeshpy.ConstMatrix4d.y ( self)

Reimplemented in mrmeshpy.Matrix4d, and mrmeshpy.Matrix4d.

◆ z()

ConstVector4d mrmeshpy.ConstMatrix4d.z ( self)

Reimplemented in mrmeshpy.Matrix4d, and mrmeshpy.Matrix4d.

◆ zero()

Matrix4d mrmeshpy.ConstMatrix4d.zero ( )
static

Member Data Documentation

◆ _offsetof_w

typing mrmeshpy.ConstMatrix4d._offsetof_w = 96
staticprotected

◆ _offsetof_x

typing mrmeshpy.ConstMatrix4d._offsetof_x = 0
staticprotected

◆ _offsetof_y

typing mrmeshpy.ConstMatrix4d._offsetof_y = 32
staticprotected

◆ _offsetof_z

typing mrmeshpy.ConstMatrix4d._offsetof_z = 64
staticprotected

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