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

Public Member Functions

Matrix2d __add__ (self, ConstMatrix2d b)
bool __eq__ (self, ConstMatrix2d b)
ConstVector2d __getitem__ (self, int row)
 __init__ (self, *args, **kwargs)
Matrix2d __mul__ (self, float a)
Vector2d __mul__ (self, ConstVector2d b)
Matrix2d __mul__ (self, ConstMatrix2d b)
bool __ne__ (self, ConstMatrix2d b)
str __repr__ (self)
typing.Any __rlshift__ (self, typing.Any mat)
Matrix2d __rmul__ (self, float b)
Matrix2d __sub__ (self, ConstMatrix2d b)
Matrix2d __truediv__ (self, float a)
Vector2d col (self, int i)
float det (self)
Matrix2d inverse (self)
float norm (self)
float normSq (self)
float trace (self)
Matrix2d transposed (self)
ConstVector2d x (self)
ConstVector2d y (self)

Static Public Member Functions

Matrix2d fromColumns (ConstVector2d x, ConstVector2d y)
Matrix2d fromRows (ConstVector2d x, ConstVector2d y)
Matrix2d identity ()
Matrix2d rotation (float angle)
Matrix2d rotation (ConstVector2d from_, ConstVector2d to)
Matrix2d scale (float s)
Matrix2d scale (float sx, float sy)
Matrix2d scale (ConstVector2d s)
Matrix2d zero ()

Static Protected Attributes

typing _offsetof_x = 0
typing _offsetof_y = 16

Detailed Description

Generated from:  MR::Matrix2d
Aliases:  AffineXf_Vector2d_M, Vector2_double_MatrixType

arbitrary 2x2 matrix

Constructor & Destructor Documentation

◆ __init__()

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

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

2. __init__(self: meshlib.mrmeshpy.ConstMatrix2d, x: meshlib.mrmeshpy.ConstVector2d, y: meshlib.mrmeshpy.ConstVector2d) -> None

initializes matrix from its 2 rows

3. __init__(self: meshlib.mrmeshpy.ConstMatrix2d, arg0: meshlib.mrmeshpy.Matrix2d) -> None

Implicit copy constructor.

4. __init__(self: meshlib.mrmeshpy.ConstMatrix2d, : meshlib.mrmeshpy.Matrix2d) -> None

Member Function Documentation

◆ __add__()

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

◆ __getitem__()

ConstVector2d mrmeshpy.ConstMatrix2d.__getitem__ ( self,
int row )
row access

◆ __mul__() [1/3]

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

◆ __mul__() [2/3]

Vector2d mrmeshpy.ConstMatrix2d.__mul__ ( self,
ConstVector2d b )
x = a * b

◆ __mul__() [3/3]

Matrix2d mrmeshpy.ConstMatrix2d.__mul__ ( self,
float a )

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.ConstMatrix2d.__repr__ ( self)

◆ __rlshift__()

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

◆ __rmul__()

Matrix2d mrmeshpy.ConstMatrix2d.__rmul__ ( self,
float b )

◆ __sub__()

Matrix2d mrmeshpy.ConstMatrix2d.__sub__ ( self,
ConstMatrix2d b )

◆ __truediv__()

Matrix2d mrmeshpy.ConstMatrix2d.__truediv__ ( self,
float a )

◆ col()

Vector2d mrmeshpy.ConstMatrix2d.col ( self,
int i )
column access

◆ det()

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

◆ fromColumns()

Matrix2d mrmeshpy.ConstMatrix2d.fromColumns ( ConstVector2d x,
ConstVector2d y )
static
constructs a matrix from its 2 columns;
use this method to get the matrix that transforms basis vectors ( plusX, plusY ) into vectors ( x, y ) respectively

◆ fromRows()

Matrix2d mrmeshpy.ConstMatrix2d.fromRows ( ConstVector2d x,
ConstVector2d y )
static
constructs a matrix from its 2 rows

◆ identity()

Matrix2d mrmeshpy.ConstMatrix2d.identity ( )
static

◆ inverse()

Matrix2d mrmeshpy.ConstMatrix2d.inverse ( self)
computes inverse matrix

◆ norm()

float mrmeshpy.ConstMatrix2d.norm ( self)

◆ normSq()

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

◆ rotation() [1/2]

Matrix2d mrmeshpy.ConstMatrix2d.rotation ( ConstVector2d from_,
ConstVector2d to )
static
creates matrix representing rotation that after application to (from) makes (to) vector

◆ rotation() [2/2]

Matrix2d mrmeshpy.ConstMatrix2d.rotation ( float angle)
static
creates matrix representing rotation around origin on given angle

◆ scale() [1/3]

Matrix2d mrmeshpy.ConstMatrix2d.scale ( ConstVector2d s)
static

◆ scale() [2/3]

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

◆ scale() [3/3]

Matrix2d mrmeshpy.ConstMatrix2d.scale ( float sx,
float sy )
static
returns a matrix that has its own scale along each axis

◆ trace()

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

◆ transposed()

Matrix2d mrmeshpy.ConstMatrix2d.transposed ( self)
computes transposed matrix

◆ x()

ConstVector2d mrmeshpy.ConstMatrix2d.x ( self)
rows, identity matrix by default

Reimplemented in mrmeshpy.Matrix2d, and mrmeshpy.Matrix2d.

◆ y()

ConstVector2d mrmeshpy.ConstMatrix2d.y ( self)

Reimplemented in mrmeshpy.Matrix2d, and mrmeshpy.Matrix2d.

◆ zero()

Matrix2d mrmeshpy.ConstMatrix2d.zero ( )
static

Member Data Documentation

◆ _offsetof_x

typing mrmeshpy.ConstMatrix2d._offsetof_x = 0
staticprotected

◆ _offsetof_y

typing mrmeshpy.ConstMatrix2d._offsetof_y = 16
staticprotected

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