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

Public Member Functions

Matrix3i __add__ (self, ConstMatrix3i b)
bool __eq__ (self, ConstMatrix3i b)
ConstVector3i __getitem__ (self, int row)
 __init__ (self, *args, **kwargs)
Matrix3i __mul__ (self, int a)
Vector3i __mul__ (self, ConstVector3i b)
Matrix3i __mul__ (self, ConstMatrix3i b)
bool __ne__ (self, ConstMatrix3i b)
str __repr__ (self)
typing.Any __rlshift__ (self, typing.Any mat)
Matrix3i __rmul__ (self, int b)
Matrix3i __sub__ (self, ConstMatrix3i b)
Matrix3i __truediv__ (self, int a)
Vector3i col (self, int i)
int det (self)
float norm (self)
int normSq (self)
int trace (self)
Matrix3i transposed (self)
ConstVector3i x (self)
ConstVector3i y (self)
ConstVector3i z (self)

Static Public Member Functions

Matrix3i fromColumns (ConstVector3i x, ConstVector3i y, ConstVector3i z)
Matrix3i fromRows (ConstVector3i x, ConstVector3i y, ConstVector3i z)
Matrix3i identity ()
Matrix3i scale (int s)
Matrix3i scale (int sx, int sy, int sz)
Matrix3i scale (ConstVector3i s)
Matrix3i zero ()

Static Protected Attributes

typing _offsetof_x = 0
typing _offsetof_y = 12
typing _offsetof_z = 24

Detailed Description

Generated from:  MR::Matrix3i
Aliases:  Vector3_int_MatrixType

arbitrary 3x3 matrix

Constructor & Destructor Documentation

◆ __init__()

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

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

2. __init__(self: meshlib.mrmeshpy.ConstMatrix3i, x: meshlib.mrmeshpy.ConstVector3i, y: meshlib.mrmeshpy.ConstVector3i, z: meshlib.mrmeshpy.ConstVector3i) -> None

initializes matrix from its 3 rows

3. __init__(self: meshlib.mrmeshpy.ConstMatrix3i, arg0: meshlib.mrmeshpy.Matrix3i) -> None

Implicit copy constructor.

4. __init__(self: meshlib.mrmeshpy.ConstMatrix3i, : meshlib.mrmeshpy.Matrix3i) -> None

Member Function Documentation

◆ __add__()

Matrix3i mrmeshpy.ConstMatrix3i.__add__ ( self,
ConstMatrix3i 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.ConstMatrix3i.__eq__ ( self,
ConstMatrix3i b )

◆ __getitem__()

ConstVector3i mrmeshpy.ConstMatrix3i.__getitem__ ( self,
int row )
row access

◆ __mul__() [1/3]

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

◆ __mul__() [2/3]

Vector3i mrmeshpy.ConstMatrix3i.__mul__ ( self,
ConstVector3i b )
x = a * b

◆ __mul__() [3/3]

Matrix3i mrmeshpy.ConstMatrix3i.__mul__ ( self,
int a )

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.ConstMatrix3i.__repr__ ( self)

◆ __rlshift__()

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

◆ __rmul__()

Matrix3i mrmeshpy.ConstMatrix3i.__rmul__ ( self,
int b )

◆ __sub__()

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

◆ __truediv__()

Matrix3i mrmeshpy.ConstMatrix3i.__truediv__ ( self,
int a )

◆ col()

Vector3i mrmeshpy.ConstMatrix3i.col ( self,
int i )
column access

◆ det()

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

◆ fromColumns()

Matrix3i mrmeshpy.ConstMatrix3i.fromColumns ( ConstVector3i x,
ConstVector3i y,
ConstVector3i 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()

Matrix3i mrmeshpy.ConstMatrix3i.fromRows ( ConstVector3i x,
ConstVector3i y,
ConstVector3i z )
static
constructs a matrix from its 3 rows

◆ identity()

Matrix3i mrmeshpy.ConstMatrix3i.identity ( )
static

◆ norm()

float mrmeshpy.ConstMatrix3i.norm ( self)

◆ normSq()

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

◆ scale() [1/3]

Matrix3i mrmeshpy.ConstMatrix3i.scale ( ConstVector3i s)
static

◆ scale() [2/3]

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

◆ scale() [3/3]

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

◆ trace()

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

◆ transposed()

Matrix3i mrmeshpy.ConstMatrix3i.transposed ( self)
computes transposed matrix

◆ x()

ConstVector3i mrmeshpy.ConstMatrix3i.x ( self)
rows, identity matrix by default

Reimplemented in mrmeshpy.Matrix3i, and mrmeshpy.Matrix3i.

◆ y()

ConstVector3i mrmeshpy.ConstMatrix3i.y ( self)

Reimplemented in mrmeshpy.Matrix3i, and mrmeshpy.Matrix3i.

◆ z()

ConstVector3i mrmeshpy.ConstMatrix3i.z ( self)

Reimplemented in mrmeshpy.Matrix3i, and mrmeshpy.Matrix3i.

◆ zero()

Matrix3i mrmeshpy.ConstMatrix3i.zero ( )
static

Member Data Documentation

◆ _offsetof_x

typing mrmeshpy.ConstMatrix3i._offsetof_x = 0
staticprotected

◆ _offsetof_y

typing mrmeshpy.ConstMatrix3i._offsetof_y = 12
staticprotected

◆ _offsetof_z

typing mrmeshpy.ConstMatrix3i._offsetof_z = 24
staticprotected

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