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

Public Member Functions

Matrix4f __add__ (self, ConstMatrix4f b)
float __call__ (self, int row, int col)
Vector3f __call__ (self, ConstVector3f b)
bool __eq__ (self, ConstMatrix4f b)
ConstVector4f __getitem__ (self, int row)
 __init__ (self, *args, **kwargs)
Matrix4f __mul__ (self, float a)
Vector4f __mul__ (self, ConstVector4f b)
Matrix4f __mul__ (self, ConstMatrix4f b)
bool __ne__ (self, ConstMatrix4f b)
str __repr__ (self)
typing.Any __rlshift__ (self, typing.Any mat)
Matrix4f __rmul__ (self, float b)
Matrix4f __sub__ (self, ConstMatrix4f b)
Matrix4f __truediv__ (self, float a)
Vector4f col (self, int i)
float data (self)
float det (self)
Matrix3f getRotation (self)
Vector3f getTranslation (self)
Matrix4f inverse (self)
float norm (self)
float normSq (self)
Matrix3f submatrix3 (self, int i, int j)
float trace (self)
Matrix4f transposed (self)
ConstVector4f w (self)
ConstVector4f x (self)
ConstVector4f y (self)
ConstVector4f z (self)

Static Public Member Functions

Matrix4f identity ()
Matrix4f scale (float s)
Matrix4f 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::Matrix4f
Aliases:  Vector4_float_MatrixType

arbitrary 4x4 matrix

Constructor & Destructor Documentation

◆ __init__()

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

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

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

initializes matrix from 4 row-vectors

3. __init__(self: meshlib.mrmeshpy.ConstMatrix4f, r: meshlib.mrmeshpy.ConstMatrix3f, t: meshlib.mrmeshpy.ConstVector3f) -> None

construct from rotation matrix and translation vector

4. __init__(self: meshlib.mrmeshpy.ConstMatrix4f, xf: meshlib.mrmeshpy.ConstAffineXf3f) -> 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.ConstMatrix4f, arg0: meshlib.mrmeshpy.Matrix4f) -> None

Implicit copy constructor.

6. __init__(self: meshlib.mrmeshpy.ConstMatrix4f, : meshlib.mrmeshpy.Matrix4f) -> None

Member Function Documentation

◆ __add__()

Matrix4f mrmeshpy.ConstMatrix4f.__add__ ( self,
ConstMatrix4f 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]

Vector3f mrmeshpy.ConstMatrix4f.__call__ ( self,
ConstVector3f 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.ConstMatrix4f.__call__ ( self,
int row,
int col )
element access

◆ __eq__()

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

◆ __getitem__()

ConstVector4f mrmeshpy.ConstMatrix4f.__getitem__ ( self,
int row )
row access

◆ __mul__() [1/3]

Matrix4f mrmeshpy.ConstMatrix4f.__mul__ ( self,
ConstMatrix4f b )
product of two matrices

◆ __mul__() [2/3]

Vector4f mrmeshpy.ConstMatrix4f.__mul__ ( self,
ConstVector4f b )
x = a * b

◆ __mul__() [3/3]

Matrix4f mrmeshpy.ConstMatrix4f.__mul__ ( self,
float a )

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.ConstMatrix4f.__repr__ ( self)

◆ __rlshift__()

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

◆ __rmul__()

Matrix4f mrmeshpy.ConstMatrix4f.__rmul__ ( self,
float b )

◆ __sub__()

Matrix4f mrmeshpy.ConstMatrix4f.__sub__ ( self,
ConstMatrix4f b )

◆ __truediv__()

Matrix4f mrmeshpy.ConstMatrix4f.__truediv__ ( self,
float a )

◆ col()

Vector4f mrmeshpy.ConstMatrix4f.col ( self,
int i )
column access

◆ data()

float mrmeshpy.ConstMatrix4f.data ( self)

Reimplemented in mrmeshpy.Matrix4f, and mrmeshpy.Matrix4f.

◆ det()

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

◆ getRotation()

Matrix3f mrmeshpy.ConstMatrix4f.getRotation ( self)

◆ getTranslation()

Vector3f mrmeshpy.ConstMatrix4f.getTranslation ( self)

◆ identity()

Matrix4f mrmeshpy.ConstMatrix4f.identity ( )
static

◆ inverse()

Matrix4f mrmeshpy.ConstMatrix4f.inverse ( self)
computes inverse matrix

◆ norm()

float mrmeshpy.ConstMatrix4f.norm ( self)

◆ normSq()

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

◆ scale()

Matrix4f mrmeshpy.ConstMatrix4f.scale ( float s)
static
returns a matrix that scales uniformly

◆ submatrix3()

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

◆ trace()

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

◆ transposed()

Matrix4f mrmeshpy.ConstMatrix4f.transposed ( self)
computes transposed matrix

◆ w()

ConstVector4f mrmeshpy.ConstMatrix4f.w ( self)

Reimplemented in mrmeshpy.Matrix4f, and mrmeshpy.Matrix4f.

◆ x()

ConstVector4f mrmeshpy.ConstMatrix4f.x ( self)
rows, identity matrix by default

Reimplemented in mrmeshpy.Matrix4f, and mrmeshpy.Matrix4f.

◆ y()

ConstVector4f mrmeshpy.ConstMatrix4f.y ( self)

Reimplemented in mrmeshpy.Matrix4f, and mrmeshpy.Matrix4f.

◆ z()

ConstVector4f mrmeshpy.ConstMatrix4f.z ( self)

Reimplemented in mrmeshpy.Matrix4f, and mrmeshpy.Matrix4f.

◆ zero()

Matrix4f mrmeshpy.ConstMatrix4f.zero ( )
static

Member Data Documentation

◆ _offsetof_w

typing mrmeshpy.ConstMatrix4f._offsetof_w = 48
staticprotected

◆ _offsetof_x

typing mrmeshpy.ConstMatrix4f._offsetof_x = 0
staticprotected

◆ _offsetof_y

typing mrmeshpy.ConstMatrix4f._offsetof_y = 16
staticprotected

◆ _offsetof_z

typing mrmeshpy.ConstMatrix4f._offsetof_z = 32
staticprotected

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