MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.Matrix4d Class Reference

Public Member Functions

Matrix4d __add__ (self, Matrix4d b)
 
float __call__ (self, int row, int col)
 
float __call__ (self, int row, int col)
 
Vector3d __call__ (self, Vector3d b)
 
bool __eq__ (self, Matrix4d b)
 
Matrix4d __iadd__ (self, Matrix4d b)
 
Matrix4d __imatmul__ (self, float b)
 
None __init__ (self)
 
None __init__ (self, Vector4d x, Vector4d y, Vector4d z, Vector4d w)
 
None __init__ (self, Matrix3d r, Vector3d t)
 
None __init__ (self, AffineXf3d xf)
 
None __init__ (self, Matrix4d arg0)
 
Matrix4d __isub__ (self, Matrix4d b)
 
Matrix4d __itruediv__ (self, float b)
 
Matrix4d __mul__ (self, float a)
 
Vector4d __mul__ (self, Vector4d b)
 
Matrix4d __mul__ (self, Matrix4d b)
 
bool __ne__ (self, Matrix4d b)
 
str __repr__ (self)
 
Matrix4d __rmul__ (self, float b)
 
Matrix4d __sub__ (self, Matrix4d b)
 
Matrix4d __truediv__ (self, float a)
 
Vector4d col (self, int i)
 
float data (self)
 
float data (self)
 
float det (self)
 
Matrix3d getRotation (self)
 
Vector3d getTranslation (self)
 
Matrix4d inverse (self)
 
float norm (self)
 
float normSq (self)
 
None setRotation (self, Matrix3d rot)
 
None setTranslation (self, Vector3d t)
 
Matrix3d submatrix3 (self, int i, int j)
 
float trace (self)
 
Matrix4d transposed (self)
 
Vector4d x (self)
 
None x (self, Vector4d arg1)
 

Static Public Member Functions

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

Protected Member Functions

Vector4d _Subscript (self, int row)
 
Vector4d _Subscript (self, int row)
 
AffineXf3d _convert_to_AffineXf3_double (self)
 

Detailed Description

Generated from:  MR::Matrix4d
Aliases:  Vector4_double_MatrixType

arbitrary 4x4 matrix
\\ingroup MatrixGroup

Constructor & Destructor Documentation

◆ __init__() [1/5]

None mrmeshpy.Matrix4d.__init__ ( self)

◆ __init__() [2/5]

None mrmeshpy.Matrix4d.__init__ ( self,
Vector4d x,
Vector4d y,
Vector4d z,
Vector4d w )
initializes matrix from 4 row-vectors

◆ __init__() [3/5]

None mrmeshpy.Matrix4d.__init__ ( self,
Matrix3d r,
Vector3d t )
construct from rotation matrix and translation vector

◆ __init__() [4/5]

None mrmeshpy.Matrix4d.__init__ ( self,
AffineXf3d xf )
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.

◆ __init__() [5/5]

None mrmeshpy.Matrix4d.__init__ ( self,
Matrix4d arg0 )
Implicit copy constructor.

Member Function Documentation

◆ __add__()

Matrix4d mrmeshpy.Matrix4d.__add__ ( self,
Matrix4d 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/3]

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

◆ __call__() [2/3]

float mrmeshpy.Matrix4d.__call__ ( self,
int row,
int col )

◆ __call__() [3/3]

Vector3d mrmeshpy.Matrix4d.__call__ ( self,
Vector3d 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

◆ __eq__()

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

◆ __iadd__()

Matrix4d mrmeshpy.Matrix4d.__iadd__ ( self,
Matrix4d b )

◆ __imatmul__()

Matrix4d mrmeshpy.Matrix4d.__imatmul__ ( self,
float b )

◆ __isub__()

Matrix4d mrmeshpy.Matrix4d.__isub__ ( self,
Matrix4d b )

◆ __itruediv__()

Matrix4d mrmeshpy.Matrix4d.__itruediv__ ( self,
float b )

◆ __mul__() [1/3]

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

◆ __mul__() [2/3]

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

◆ __mul__() [3/3]

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

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.Matrix4d.__repr__ ( self)

◆ __rmul__()

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

◆ __sub__()

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

◆ __truediv__()

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

◆ _convert_to_AffineXf3_double()

AffineXf3d mrmeshpy.Matrix4d._convert_to_AffineXf3_double ( self)
protected

◆ _Subscript() [1/2]

Vector4d mrmeshpy.Matrix4d._Subscript ( self,
int row )
protected
row access

◆ _Subscript() [2/2]

Vector4d mrmeshpy.Matrix4d._Subscript ( self,
int row )
protected

◆ col()

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

◆ data() [1/2]

float mrmeshpy.Matrix4d.data ( self)

◆ data() [2/2]

float mrmeshpy.Matrix4d.data ( self)

◆ det()

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

◆ getRotation()

Matrix3d mrmeshpy.Matrix4d.getRotation ( self)

◆ getTranslation()

Vector3d mrmeshpy.Matrix4d.getTranslation ( self)

◆ identity()

Matrix4d mrmeshpy.Matrix4d.identity ( )
static

◆ inverse()

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

◆ norm()

float mrmeshpy.Matrix4d.norm ( self)

◆ normSq()

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

◆ scale()

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

◆ setRotation()

None mrmeshpy.Matrix4d.setRotation ( self,
Matrix3d rot )

◆ setTranslation()

None mrmeshpy.Matrix4d.setTranslation ( self,
Vector3d t )

◆ submatrix3()

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

◆ trace()

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

◆ transposed()

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

◆ x() [1/2]

Vector4d mrmeshpy.Matrix4d.x ( self)
rows, identity matrix by default

◆ x() [2/2]

None mrmeshpy.Matrix4d.x ( self,
Vector4d arg1 )

◆ zero()

Matrix4d mrmeshpy.Matrix4d.zero ( )
static

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