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

Public Member Functions

float __call__ (self, int row, int col)
 
float __call__ (self, int row, int col)
 
Vector3f __call__ (self, Vector3f b)
 
Matrix4f __iadd__ (self, Matrix4f b)
 
Matrix4f __imatmul__ (self, float b)
 
None __init__ (self)
 
None __init__ (self, Vector4f x, Vector4f y, Vector4f z, Vector4f w)
 
None __init__ (self, Matrix3f r, Vector3f t)
 
None __init__ (self, AffineXf3f xf)
 
None __init__ (self, Matrix4f arg0)
 
Matrix4f __isub__ (self, Matrix4f b)
 
Matrix4f __itruediv__ (self, float b)
 
str __repr__ (self)
 
Vector4f col (self, int i)
 
float data (self)
 
float data (self)
 
float det (self)
 
Matrix3f getRotation (self)
 
Vector3f getTranslation (self)
 
Matrix4f inverse (self)
 
float norm (self)
 
float normSq (self)
 
None setRotation (self, Matrix3f rot)
 
None setTranslation (self, Vector3f t)
 
Matrix3f submatrix3 (self, int i, int j)
 
float trace (self)
 
Matrix4f transposed (self)
 
Vector4f x (self)
 
None x (self, Vector4f arg1)
 

Static Public Member Functions

Matrix4f identity ()
 
Matrix4f scale (float s)
 
Matrix4f zero ()
 

Protected Member Functions

Vector4f _Subscript (self, int row)
 
Vector4f _Subscript (self, int row)
 
AffineXf3f _convert_to_AffineXf3_float (self)
 

Static Protected Member Functions

 _pybind11_conduit_v1_ (*args, **kwargs)
 

Detailed Description

Generated from:  MR::Matrix4f
Aliases:  Vector4_float_MatrixType

arbitrary 4x4 matrix
\\ingroup MatrixGroup

Constructor & Destructor Documentation

◆ __init__() [1/5]

None mrmeshpy.Matrix4f.__init__ ( self)

◆ __init__() [2/5]

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

◆ __init__() [3/5]

None mrmeshpy.Matrix4f.__init__ ( self,
Matrix3f r,
Vector3f t )
construct from rotation matrix and translation vector

◆ __init__() [4/5]

None mrmeshpy.Matrix4f.__init__ ( self,
AffineXf3f 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.Matrix4f.__init__ ( self,
Matrix4f arg0 )
Implicit copy constructor.

Member Function Documentation

◆ __call__() [1/3]

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

◆ __call__() [2/3]

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

◆ __call__() [3/3]

Vector3f mrmeshpy.Matrix4f.__call__ ( self,
Vector3f 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

◆ __iadd__()

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

◆ __imatmul__()

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

◆ __isub__()

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

◆ __itruediv__()

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

◆ __repr__()

str mrmeshpy.Matrix4f.__repr__ ( self)

◆ _convert_to_AffineXf3_float()

AffineXf3f mrmeshpy.Matrix4f._convert_to_AffineXf3_float ( self)
protected

◆ _pybind11_conduit_v1_()

mrmeshpy.Matrix4f._pybind11_conduit_v1_ ( * args,
** kwargs )
staticprotected

◆ _Subscript() [1/2]

Vector4f mrmeshpy.Matrix4f._Subscript ( self,
int row )
protected
row access

◆ _Subscript() [2/2]

Vector4f mrmeshpy.Matrix4f._Subscript ( self,
int row )
protected

◆ col()

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

◆ data() [1/2]

float mrmeshpy.Matrix4f.data ( self)

◆ data() [2/2]

float mrmeshpy.Matrix4f.data ( self)

◆ det()

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

◆ getRotation()

Matrix3f mrmeshpy.Matrix4f.getRotation ( self)

◆ getTranslation()

Vector3f mrmeshpy.Matrix4f.getTranslation ( self)

◆ identity()

Matrix4f mrmeshpy.Matrix4f.identity ( )
static

◆ inverse()

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

◆ norm()

float mrmeshpy.Matrix4f.norm ( self)

◆ normSq()

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

◆ scale()

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

◆ setRotation()

None mrmeshpy.Matrix4f.setRotation ( self,
Matrix3f rot )

◆ setTranslation()

None mrmeshpy.Matrix4f.setTranslation ( self,
Vector3f t )

◆ submatrix3()

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

◆ trace()

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

◆ transposed()

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

◆ x() [1/2]

Vector4f mrmeshpy.Matrix4f.x ( self)
rows, identity matrix by default

◆ x() [2/2]

None mrmeshpy.Matrix4f.x ( self,
Vector4f arg1 )

◆ zero()

Matrix4f mrmeshpy.Matrix4f.zero ( )
static

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