MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.Matrix2f Class Reference

Public Member Functions

Matrix2f __iadd__ (self, Matrix2f b)
 
Matrix2f __imatmul__ (self, float b)
 
None __init__ (self)
 
None __init__ (self, Vector2f x, Vector2f y)
 
None __init__ (self, Matrix2f arg0)
 
Matrix2f __isub__ (self, Matrix2f b)
 
Matrix2f __itruediv__ (self, float b)
 
Vector2f col (self, int i)
 
float det (self)
 
Matrix2f inverse (self)
 
float norm (self)
 
float normSq (self)
 
float trace (self)
 
Matrix2f transposed (self)
 
Vector2f x (self)
 
None x (self, Vector2f arg1)
 

Static Public Member Functions

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

Protected Member Functions

Vector2f _Subscript (self, int row)
 
Vector2f _Subscript (self, int row)
 

Detailed Description

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

arbitrary 2x2 matrix
\\ingroup MatrixGroup

Constructor & Destructor Documentation

◆ __init__() [1/3]

None meshlib.mrmeshpy.Matrix2f.__init__ ( self)

◆ __init__() [2/3]

None meshlib.mrmeshpy.Matrix2f.__init__ ( self,
Vector2f x,
Vector2f y )
initializes matrix from its 2 rows

◆ __init__() [3/3]

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

Member Function Documentation

◆ __iadd__()

Matrix2f meshlib.mrmeshpy.Matrix2f.__iadd__ ( self,
Matrix2f b )

◆ __imatmul__()

Matrix2f meshlib.mrmeshpy.Matrix2f.__imatmul__ ( self,
float b )

◆ __isub__()

Matrix2f meshlib.mrmeshpy.Matrix2f.__isub__ ( self,
Matrix2f b )

◆ __itruediv__()

Matrix2f meshlib.mrmeshpy.Matrix2f.__itruediv__ ( self,
float b )

◆ _Subscript() [1/2]

Vector2f meshlib.mrmeshpy.Matrix2f._Subscript ( self,
int row )
protected
row access

◆ _Subscript() [2/2]

Vector2f meshlib.mrmeshpy.Matrix2f._Subscript ( self,
int row )
protected

◆ col()

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

◆ det()

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

◆ fromColumns()

Matrix2f meshlib.mrmeshpy.Matrix2f.fromColumns ( Vector2f x,
Vector2f 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 meshlib.mrmeshpy.Matrix2f.fromRows ( Vector2f x,
Vector2f y )
static
constructs a matrix from its 2 rows

◆ identity()

Matrix2f meshlib.mrmeshpy.Matrix2f.identity ( )
static

◆ inverse()

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

◆ norm()

float meshlib.mrmeshpy.Matrix2f.norm ( self)

◆ normSq()

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

◆ rotation() [1/2]

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

◆ rotation() [2/2]

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

◆ scale() [1/3]

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

◆ scale() [2/3]

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

◆ scale() [3/3]

Matrix2f meshlib.mrmeshpy.Matrix2f.scale ( Vector2f s)
static

◆ trace()

float meshlib.mrmeshpy.Matrix2f.trace ( self)
computes trace of the matrix

◆ transposed()

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

◆ x() [1/2]

Vector2f meshlib.mrmeshpy.Matrix2f.x ( self)
rows, identity matrix by default

◆ x() [2/2]

None meshlib.mrmeshpy.Matrix2f.x ( self,
Vector2f arg1 )

◆ zero()

Matrix2f meshlib.mrmeshpy.Matrix2f.zero ( )
static

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