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

Public Member Functions

Matrix4i __add__ (self, Matrix4_unsigned_char b)
 
int __call__ (self, int row, int col)
 
int __call__ (self, int row, int col)
 
bool __eq__ (self, Matrix4_unsigned_char b)
 
Vector4_unsigned_char __getitem__ (self, int row)
 
Vector4_unsigned_char __getitem__ (self, int row)
 
Matrix4_unsigned_char __iadd__ (self, Matrix4_unsigned_char b)
 
Matrix4_unsigned_char __imatmul__ (self, int b)
 
None __init__ (self)
 
None __init__ (self, Vector4_unsigned_char x, Vector4_unsigned_char y, Vector4_unsigned_char z, Vector4_unsigned_char w)
 
None __init__ (self, Matrix3_unsigned_char r, Vector3_unsigned_char t)
 
None __init__ (self, Matrix4_unsigned_char arg0)
 
Matrix4_unsigned_char __isub__ (self, Matrix4_unsigned_char b)
 
Matrix4_unsigned_char __itruediv__ (self, int b)
 
Matrix4i __mul__ (self, int a)
 
Vector4i __mul__ (self, Vector4_unsigned_char b)
 
Matrix4i __mul__ (self, Matrix4_unsigned_char b)
 
bool __ne__ (self, Matrix4_unsigned_char b)
 
str __repr__ (self)
 
Matrix4i __rmul__ (self, int b)
 
None __setitem__ (self, int arg0, Vector4_unsigned_char arg1)
 
Matrix4i __sub__ (self, Matrix4_unsigned_char b)
 
Matrix4i __truediv__ (self, int a)
 
Vector4_unsigned_char col (self, int i)
 
int data (self)
 
int data (self)
 
int det (self)
 
Matrix3_unsigned_char getRotation (self)
 
Vector3_unsigned_char getTranslation (self)
 
float norm (self)
 
int normSq (self)
 
None setRotation (self, Matrix3_unsigned_char rot)
 
None setTranslation (self, Vector3_unsigned_char t)
 
Matrix3_unsigned_char submatrix3 (self, int i, int j)
 
int trace (self)
 
Matrix4_unsigned_char transposed (self)
 
Vector4_unsigned_char x (self)
 
None x (self, Vector4_unsigned_char arg1)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
Matrix4_unsigned_char identity ()
 
Matrix4_unsigned_char operator (*args, **kwargs)
 
Matrix4_unsigned_char operator (*args, **kwargs)
 
Matrix4_unsigned_char scale (int s)
 
Matrix4_unsigned_char zero ()
 

Static Public Attributes

Vector4_unsigned_char VectorType = Vector4_unsigned_char
 

Static Protected Attributes

typing _offsetof_w = 12
 
typing _offsetof_x = 0
 
typing _offsetof_y = 4
 
typing _offsetof_z = 8
 

Detailed Description

Generated from:  MR::Matrix4<unsigned char>
Aliases:  Vector4_unsigned_char.MatrixType

arbitrary 4x4 matrix

Constructor & Destructor Documentation

◆ __init__() [1/5]

None mrmeshpy.Matrix4_unsigned_char.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/5]

None mrmeshpy.Matrix4_unsigned_char.__init__ ( self)

◆ __init__() [3/5]

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

◆ __init__() [4/5]

None mrmeshpy.Matrix4_unsigned_char.__init__ ( self,
Matrix3_unsigned_char r,
Vector3_unsigned_char t )
construct from rotation matrix and translation vector

◆ __init__() [5/5]

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

Member Function Documentation

◆ __add__()

Matrix4i mrmeshpy.Matrix4_unsigned_char.__add__ ( self,
Matrix4_unsigned_char 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]

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

◆ __call__() [2/2]

int mrmeshpy.Matrix4_unsigned_char.__call__ ( self,
int row,
int col )

◆ __eq__()

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

◆ __getitem__() [1/2]

Vector4_unsigned_char mrmeshpy.Matrix4_unsigned_char.__getitem__ ( self,
int row )
row access

◆ __getitem__() [2/2]

Vector4_unsigned_char mrmeshpy.Matrix4_unsigned_char.__getitem__ ( self,
int row )

◆ __iadd__()

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

◆ __imatmul__()

Matrix4_unsigned_char mrmeshpy.Matrix4_unsigned_char.__imatmul__ ( self,
int b )

◆ __isub__()

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

◆ __itruediv__()

Matrix4_unsigned_char mrmeshpy.Matrix4_unsigned_char.__itruediv__ ( self,
int b )

◆ __mul__() [1/3]

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

◆ __mul__() [2/3]

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

◆ __mul__() [3/3]

Vector4i mrmeshpy.Matrix4_unsigned_char.__mul__ ( self,
Vector4_unsigned_char b )
x = a * b

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.Matrix4_unsigned_char.__repr__ ( self)

◆ __rmul__()

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

◆ __setitem__()

None mrmeshpy.Matrix4_unsigned_char.__setitem__ ( self,
int arg0,
Vector4_unsigned_char arg1 )

◆ __sub__()

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

◆ __truediv__()

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

◆ col()

Vector4_unsigned_char mrmeshpy.Matrix4_unsigned_char.col ( self,
int i )
column access

◆ data() [1/2]

int mrmeshpy.Matrix4_unsigned_char.data ( self)

◆ data() [2/2]

int mrmeshpy.Matrix4_unsigned_char.data ( self)

◆ det()

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

◆ getRotation()

Matrix3_unsigned_char mrmeshpy.Matrix4_unsigned_char.getRotation ( self)

◆ getTranslation()

Vector3_unsigned_char mrmeshpy.Matrix4_unsigned_char.getTranslation ( self)

◆ identity()

Matrix4_unsigned_char mrmeshpy.Matrix4_unsigned_char.identity ( )
static

◆ norm()

float mrmeshpy.Matrix4_unsigned_char.norm ( self)

◆ normSq()

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

◆ operator() [1/2]

Matrix4_unsigned_char mrmeshpy.Matrix4_unsigned_char.operator ( * args,
** kwargs )
static

◆ operator() [2/2]

Matrix4_unsigned_char mrmeshpy.Matrix4_unsigned_char.operator ( * args,
** kwargs )
static

◆ scale()

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

◆ setRotation()

None mrmeshpy.Matrix4_unsigned_char.setRotation ( self,
Matrix3_unsigned_char rot )

◆ setTranslation()

None mrmeshpy.Matrix4_unsigned_char.setTranslation ( self,
Vector3_unsigned_char t )

◆ submatrix3()

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

◆ trace()

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

◆ transposed()

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

◆ x() [1/2]

Vector4_unsigned_char mrmeshpy.Matrix4_unsigned_char.x ( self)
rows, identity matrix by default

◆ x() [2/2]

None mrmeshpy.Matrix4_unsigned_char.x ( self,
Vector4_unsigned_char arg1 )

◆ zero()

Matrix4_unsigned_char mrmeshpy.Matrix4_unsigned_char.zero ( )
static

Member Data Documentation

◆ _offsetof_w

typing mrmeshpy.Matrix4_unsigned_char._offsetof_w = 12
staticprotected

◆ _offsetof_x

typing mrmeshpy.Matrix4_unsigned_char._offsetof_x = 0
staticprotected

◆ _offsetof_y

typing mrmeshpy.Matrix4_unsigned_char._offsetof_y = 4
staticprotected

◆ _offsetof_z

typing mrmeshpy.Matrix4_unsigned_char._offsetof_z = 8
staticprotected

◆ VectorType

Vector4_unsigned_char mrmeshpy.Matrix4_unsigned_char.VectorType = Vector4_unsigned_char
static

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