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

Public Member Functions

Matrix3i __add__ (self, Matrix3b b)
 
bool __eq__ (self, Matrix3b b)
 
Vector3b __getitem__ (self, int row)
 
Vector3b __getitem__ (self, int row)
 
Matrix3b __iadd__ (self, Matrix3b b)
 
Matrix3b __imatmul__ (self, bool b)
 
None __init__ (self)
 
None __init__ (self, Vector3b x, Vector3b y, Vector3b z)
 
Matrix3b __isub__ (self, Matrix3b b)
 
Matrix3b __itruediv__ (self, bool b)
 
Matrix3i __mul__ (self, bool a)
 
Vector3i __mul__ (self, Vector3b b)
 
Matrix3i __mul__ (self, Matrix3b b)
 
bool __ne__ (self, Matrix3b b)
 
str __repr__ (self)
 
Matrix3i __rmul__ (self, bool b)
 
None __setitem__ (self, int arg0, Vector3b arg1)
 
Matrix3i __sub__ (self, Matrix3b b)
 
Matrix3i __truediv__ (self, bool a)
 
Vector3b col (self, int i)
 
bool det (self)
 
float norm (self)
 
bool normSq (self)
 
bool trace (self)
 
Matrix3b transposed (self)
 
Vector3b x (self)
 
None x (self, Vector3b arg1)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
Matrix3b fromColumns (Vector3b x, Vector3b y, Vector3b z)
 
Matrix3b fromRows (Vector3b x, Vector3b y, Vector3b z)
 
Matrix3b identity ()
 
Matrix3b operator (*args, **kwargs)
 
Matrix3b operator (*args, **kwargs)
 
Matrix3b scale (bool s)
 
Matrix3b scale (bool sx, bool sy, bool sz)
 
Matrix3b scale (Vector3b s)
 
Matrix3b zero ()
 

Static Protected Attributes

typing _offsetof_x = 0
 
typing _offsetof_y = 3
 
typing _offsetof_z = 6
 

Detailed Description

Generated from:  MR::Matrix3b
Aliases:  Vector3_bool_MatrixType

arbitrary 3x3 matrix
\\ingroup MatrixGroup

Constructor & Destructor Documentation

◆ __init__() [1/3]

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

◆ __init__() [2/3]

None mrmeshpy.Matrix3b.__init__ ( self)

◆ __init__() [3/3]

None mrmeshpy.Matrix3b.__init__ ( self,
Vector3b x,
Vector3b y,
Vector3b z )
initializes matrix from its 3 rows

Member Function Documentation

◆ __add__()

Matrix3i mrmeshpy.Matrix3b.__add__ ( self,
Matrix3b 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.

◆ __eq__()

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

◆ __getitem__() [1/2]

Vector3b mrmeshpy.Matrix3b.__getitem__ ( self,
int row )
row access

◆ __getitem__() [2/2]

Vector3b mrmeshpy.Matrix3b.__getitem__ ( self,
int row )

◆ __iadd__()

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

◆ __imatmul__()

Matrix3b mrmeshpy.Matrix3b.__imatmul__ ( self,
bool b )

◆ __isub__()

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

◆ __itruediv__()

Matrix3b mrmeshpy.Matrix3b.__itruediv__ ( self,
bool b )

◆ __mul__() [1/3]

Matrix3i mrmeshpy.Matrix3b.__mul__ ( self,
bool a )

◆ __mul__() [2/3]

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

◆ __mul__() [3/3]

Vector3i mrmeshpy.Matrix3b.__mul__ ( self,
Vector3b b )
x = a * b

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.Matrix3b.__repr__ ( self)

◆ __rmul__()

Matrix3i mrmeshpy.Matrix3b.__rmul__ ( self,
bool b )

◆ __setitem__()

None mrmeshpy.Matrix3b.__setitem__ ( self,
int arg0,
Vector3b arg1 )

◆ __sub__()

Matrix3i mrmeshpy.Matrix3b.__sub__ ( self,
Matrix3b b )

◆ __truediv__()

Matrix3i mrmeshpy.Matrix3b.__truediv__ ( self,
bool a )

◆ col()

Vector3b mrmeshpy.Matrix3b.col ( self,
int i )
column access

◆ det()

bool mrmeshpy.Matrix3b.det ( self)
computes determinant of the matrix

◆ fromColumns()

Matrix3b mrmeshpy.Matrix3b.fromColumns ( Vector3b x,
Vector3b y,
Vector3b z )
static
constructs a matrix from its 3 columns;
use this method to get the matrix that transforms basis vectors ( plusX, plusY, plusZ ) into vectors ( x, y, z ) respectively

◆ fromRows()

Matrix3b mrmeshpy.Matrix3b.fromRows ( Vector3b x,
Vector3b y,
Vector3b z )
static
constructs a matrix from its 3 rows

◆ identity()

Matrix3b mrmeshpy.Matrix3b.identity ( )
static

◆ norm()

float mrmeshpy.Matrix3b.norm ( self)

◆ normSq()

bool mrmeshpy.Matrix3b.normSq ( self)
compute sum of squared matrix elements

◆ operator() [1/2]

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

◆ operator() [2/2]

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

◆ scale() [1/3]

Matrix3b mrmeshpy.Matrix3b.scale ( bool s)
static
returns a matrix that scales uniformly

◆ scale() [2/3]

Matrix3b mrmeshpy.Matrix3b.scale ( bool sx,
bool sy,
bool sz )
static
returns a matrix that has its own scale along each axis

◆ scale() [3/3]

Matrix3b mrmeshpy.Matrix3b.scale ( Vector3b s)
static

◆ trace()

bool mrmeshpy.Matrix3b.trace ( self)
computes trace of the matrix

◆ transposed()

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

◆ x() [1/2]

Vector3b mrmeshpy.Matrix3b.x ( self)
rows, identity matrix by default

◆ x() [2/2]

None mrmeshpy.Matrix3b.x ( self,
Vector3b arg1 )

◆ zero()

Matrix3b mrmeshpy.Matrix3b.zero ( )
static

Member Data Documentation

◆ _offsetof_x

typing mrmeshpy.Matrix3b._offsetof_x = 0
staticprotected

◆ _offsetof_y

typing mrmeshpy.Matrix3b._offsetof_y = 3
staticprotected

◆ _offsetof_z

typing mrmeshpy.Matrix3b._offsetof_z = 6
staticprotected

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