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

Public Member Functions

Matrix3d __add__ (self, ConstMatrix3d b)
bool __eq__ (self, ConstMatrix3d b)
ConstVector3d __getitem__ (self, int row)
 __init__ (self, *args, **kwargs)
Matrix3d __mul__ (self, float a)
Vector3d __mul__ (self, ConstVector3d b)
Matrix3d __mul__ (self, ConstMatrix3d b)
bool __ne__ (self, ConstMatrix3d b)
str __repr__ (self)
typing.Any __rlshift__ (self, typing.Any mat)
Matrix3d __rmul__ (self, float b)
Matrix3d __sub__ (self, ConstMatrix3d b)
Matrix3d __truediv__ (self, float a)
Vector3d col (self, int i)
float det (self)
Matrix3d inverse (self)
float norm (self)
float normSq (self)
Matrix3_double_QR qr (self)
Vector3d toEulerAngles (self)
float trace (self)
Matrix3d transposed (self)
ConstVector3d x (self)
ConstVector3d y (self)
ConstVector3d z (self)

Static Public Member Functions

Matrix3d approximateLinearRotationMatrixFromEuler (ConstVector3d eulerAngles)
Matrix3d fromColumns (ConstVector3d x, ConstVector3d y, ConstVector3d z)
Matrix3d fromRows (ConstVector3d x, ConstVector3d y, ConstVector3d z)
Matrix3d identity ()
Matrix3d rotation (ConstVector3d axis, float angle)
Matrix3d rotation (ConstVector3d from_, ConstVector3d to)
Matrix3d rotationFromEuler (ConstVector3d eulerAngles)
Matrix3d scale (float s)
Matrix3d scale (float sx, float sy, float sz)
Matrix3d scale (ConstVector3d s)
Matrix3d zero ()

Static Protected Attributes

typing _offsetof_x = 0
typing _offsetof_y = 24
typing _offsetof_z = 48

Detailed Description

Generated from:  MR::Matrix3d
Aliases:  AffineXf_Vector3d_M, Vector3_double_MatrixType

arbitrary 3x3 matrix

Constructor & Destructor Documentation

◆ __init__()

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

1. __init__(self: meshlib.mrmeshpy.ConstMatrix3d, arg0: meshlib.mrmeshpy.ConstQuaterniond) -> None

converts this into 3x3 rotation matrix

2. __init__(self: meshlib.mrmeshpy.ConstMatrix3d) -> None

3. __init__(self: meshlib.mrmeshpy.ConstMatrix3d, x: meshlib.mrmeshpy.ConstVector3d, y: meshlib.mrmeshpy.ConstVector3d, z: meshlib.mrmeshpy.ConstVector3d) -> None

initializes matrix from its 3 rows

4. __init__(self: meshlib.mrmeshpy.ConstMatrix3d, arg0: meshlib.mrmeshpy.Matrix3d) -> None

Implicit copy constructor.

5. __init__(self: meshlib.mrmeshpy.ConstMatrix3d, : meshlib.mrmeshpy.Matrix3d) -> None

Member Function Documentation

◆ __add__()

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

◆ __getitem__()

ConstVector3d mrmeshpy.ConstMatrix3d.__getitem__ ( self,
int row )
row access

◆ __mul__() [1/3]

Matrix3d mrmeshpy.ConstMatrix3d.__mul__ ( self,
ConstMatrix3d b )
product of two matrices

◆ __mul__() [2/3]

Vector3d mrmeshpy.ConstMatrix3d.__mul__ ( self,
ConstVector3d b )
x = a * b

◆ __mul__() [3/3]

Matrix3d mrmeshpy.ConstMatrix3d.__mul__ ( self,
float a )

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.ConstMatrix3d.__repr__ ( self)

◆ __rlshift__()

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

◆ __rmul__()

Matrix3d mrmeshpy.ConstMatrix3d.__rmul__ ( self,
float b )

◆ __sub__()

Matrix3d mrmeshpy.ConstMatrix3d.__sub__ ( self,
ConstMatrix3d b )

◆ __truediv__()

Matrix3d mrmeshpy.ConstMatrix3d.__truediv__ ( self,
float a )

◆ approximateLinearRotationMatrixFromEuler()

Matrix3d mrmeshpy.ConstMatrix3d.approximateLinearRotationMatrixFromEuler ( ConstVector3d eulerAngles)
static
returns linear by angles approximation of the rotation matrix, which is close to true rotation matrix for small angles

◆ col()

Vector3d mrmeshpy.ConstMatrix3d.col ( self,
int i )
column access

◆ det()

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

◆ fromColumns()

Matrix3d mrmeshpy.ConstMatrix3d.fromColumns ( ConstVector3d x,
ConstVector3d y,
ConstVector3d 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()

Matrix3d mrmeshpy.ConstMatrix3d.fromRows ( ConstVector3d x,
ConstVector3d y,
ConstVector3d z )
static
constructs a matrix from its 3 rows

◆ identity()

Matrix3d mrmeshpy.ConstMatrix3d.identity ( )
static

◆ inverse()

Matrix3d mrmeshpy.ConstMatrix3d.inverse ( self)
computes inverse matrix

◆ norm()

float mrmeshpy.ConstMatrix3d.norm ( self)

◆ normSq()

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

◆ qr()

Matrix3_double_QR mrmeshpy.ConstMatrix3d.qr ( self)
decompose this matrix on the product Q*R, where Q is orthogonal and R is upper triangular

◆ rotation() [1/2]

Matrix3d mrmeshpy.ConstMatrix3d.rotation ( ConstVector3d axis,
float angle )
static
creates matrix representing rotation around given axis on given angle

◆ rotation() [2/2]

Matrix3d mrmeshpy.ConstMatrix3d.rotation ( ConstVector3d from_,
ConstVector3d to )
static
creates matrix representing rotation that after application to (from) makes (to) vector

◆ rotationFromEuler()

Matrix3d mrmeshpy.ConstMatrix3d.rotationFromEuler ( ConstVector3d eulerAngles)
static
creates matrix representing rotation from 3 Euler angles: R=R(z)*R(y)*R(x)
see more https://en.wikipedia.org/wiki/Euler_angles#Conventions_by_intrinsic_rotations

◆ scale() [1/3]

Matrix3d mrmeshpy.ConstMatrix3d.scale ( ConstVector3d s)
static

◆ scale() [2/3]

Matrix3d mrmeshpy.ConstMatrix3d.scale ( float s)
static
returns a matrix that scales uniformly

◆ scale() [3/3]

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

◆ toEulerAngles()

Vector3d mrmeshpy.ConstMatrix3d.toEulerAngles ( self)
returns 3 Euler angles, assuming this is a rotation matrix composed as follows: R=R(z)*R(y)*R(x)

◆ trace()

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

◆ transposed()

Matrix3d mrmeshpy.ConstMatrix3d.transposed ( self)
computes transposed matrix

◆ x()

ConstVector3d mrmeshpy.ConstMatrix3d.x ( self)
rows, identity matrix by default

Reimplemented in mrmeshpy.Matrix3d, and mrmeshpy.Matrix3d.

◆ y()

ConstVector3d mrmeshpy.ConstMatrix3d.y ( self)

Reimplemented in mrmeshpy.Matrix3d, and mrmeshpy.Matrix3d.

◆ z()

ConstVector3d mrmeshpy.ConstMatrix3d.z ( self)

Reimplemented in mrmeshpy.Matrix3d, and mrmeshpy.Matrix3d.

◆ zero()

Matrix3d mrmeshpy.ConstMatrix3d.zero ( )
static

Member Data Documentation

◆ _offsetof_x

typing mrmeshpy.ConstMatrix3d._offsetof_x = 0
staticprotected

◆ _offsetof_y

typing mrmeshpy.ConstMatrix3d._offsetof_y = 24
staticprotected

◆ _offsetof_z

typing mrmeshpy.ConstMatrix3d._offsetof_z = 48
staticprotected

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