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

Public Member Functions

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

Static Public Member Functions

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

Static Protected Attributes

typing _offsetof_x = 0
typing _offsetof_y = 8

Detailed Description

Generated from:  MR::Matrix2f
Aliases:  AffineXf_Vector2f_M, Vector2_float_MatrixType

arbitrary 2x2 matrix

Constructor & Destructor Documentation

◆ __init__()

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

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

2. __init__(self: meshlib.mrmeshpy.ConstMatrix2f, x: meshlib.mrmeshpy.ConstVector2f, y: meshlib.mrmeshpy.ConstVector2f) -> None

initializes matrix from its 2 rows

3. __init__(self: meshlib.mrmeshpy.ConstMatrix2f, arg0: meshlib.mrmeshpy.Matrix2f) -> None

Implicit copy constructor.

4. __init__(self: meshlib.mrmeshpy.ConstMatrix2f, : meshlib.mrmeshpy.Matrix2f) -> None

Member Function Documentation

◆ __add__()

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

◆ __getitem__()

ConstVector2f mrmeshpy.ConstMatrix2f.__getitem__ ( self,
int row )
row access

◆ __mul__() [1/3]

Matrix2f mrmeshpy.ConstMatrix2f.__mul__ ( self,
ConstMatrix2f b )
product of two matrices

◆ __mul__() [2/3]

Vector2f mrmeshpy.ConstMatrix2f.__mul__ ( self,
ConstVector2f b )
x = a * b

◆ __mul__() [3/3]

Matrix2f mrmeshpy.ConstMatrix2f.__mul__ ( self,
float a )

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.ConstMatrix2f.__repr__ ( self)

◆ __rlshift__()

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

◆ __rmul__()

Matrix2f mrmeshpy.ConstMatrix2f.__rmul__ ( self,
float b )

◆ __sub__()

Matrix2f mrmeshpy.ConstMatrix2f.__sub__ ( self,
ConstMatrix2f b )

◆ __truediv__()

Matrix2f mrmeshpy.ConstMatrix2f.__truediv__ ( self,
float a )

◆ col()

Vector2f mrmeshpy.ConstMatrix2f.col ( self,
int i )
column access

◆ det()

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

◆ fromColumns()

Matrix2f mrmeshpy.ConstMatrix2f.fromColumns ( ConstVector2f x,
ConstVector2f 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()

Matrix2f mrmeshpy.ConstMatrix2f.fromRows ( ConstVector2f x,
ConstVector2f y )
static
constructs a matrix from its 2 rows

◆ identity()

Matrix2f mrmeshpy.ConstMatrix2f.identity ( )
static

◆ inverse()

Matrix2f mrmeshpy.ConstMatrix2f.inverse ( self)
computes inverse matrix

◆ norm()

float mrmeshpy.ConstMatrix2f.norm ( self)

◆ normSq()

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

◆ rotation() [1/2]

Matrix2f mrmeshpy.ConstMatrix2f.rotation ( ConstVector2f from_,
ConstVector2f to )
static
creates matrix representing rotation that after application to (from) makes (to) vector

◆ rotation() [2/2]

Matrix2f mrmeshpy.ConstMatrix2f.rotation ( float angle)
static
creates matrix representing rotation around origin on given angle

◆ scale() [1/3]

Matrix2f mrmeshpy.ConstMatrix2f.scale ( ConstVector2f s)
static

◆ scale() [2/3]

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

◆ scale() [3/3]

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

◆ trace()

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

◆ transposed()

Matrix2f mrmeshpy.ConstMatrix2f.transposed ( self)
computes transposed matrix

◆ x()

ConstVector2f mrmeshpy.ConstMatrix2f.x ( self)
rows, identity matrix by default

Reimplemented in mrmeshpy.Matrix2f, and mrmeshpy.Matrix2f.

◆ y()

ConstVector2f mrmeshpy.ConstMatrix2f.y ( self)

Reimplemented in mrmeshpy.Matrix2f, and mrmeshpy.Matrix2f.

◆ zero()

Matrix2f mrmeshpy.ConstMatrix2f.zero ( )
static

Member Data Documentation

◆ _offsetof_x

typing mrmeshpy.ConstMatrix2f._offsetof_x = 0
staticprotected

◆ _offsetof_y

typing mrmeshpy.ConstMatrix2f._offsetof_y = 8
staticprotected

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