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

Public Member Functions

Vector2d __call__ (self, Vector2d x)
 
bool __eq__ (self, AffineXf2d b)
 
None __init__ (self)
 
None __init__ (self, Matrix2d A, Vector2d b)
 
None __init__ (self, AffineXf2d arg0)
 
AffineXf2d __mul__ (self, AffineXf2d v)
 
bool __ne__ (self, AffineXf2d b)
 
AffineXf2d inverse (self)
 
Vector2d linearOnly (self, Vector2d x)
 

Static Public Member Functions

AffineXf2d linear (Matrix2d A)
 
AffineXf2d translation (Vector2d b)
 
AffineXf2d xfAround (Matrix2d A, Vector2d stable)
 

Detailed Description

Generated from:  MR::AffineXf2d
Aliases:  AffineXf_Vector2d, AffineXf_Vector2d, AffineXf_Vector2_double

affine transformation: y = A*x + b, where A in VxV, and b in V
\\ingroup MathGroup

Constructor & Destructor Documentation

◆ __init__() [1/3]

None meshlib.mrmeshpy.AffineXf2d.__init__ ( self)

◆ __init__() [2/3]

None meshlib.mrmeshpy.AffineXf2d.__init__ ( self,
Matrix2d A,
Vector2d b )

◆ __init__() [3/3]

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

Member Function Documentation

◆ __call__()

Vector2d meshlib.mrmeshpy.AffineXf2d.__call__ ( self,
Vector2d x )
application of the transformation to a point

◆ __eq__()

bool meshlib.mrmeshpy.AffineXf2d.__eq__ ( self,
AffineXf2d b )

◆ __mul__()

AffineXf2d meshlib.mrmeshpy.AffineXf2d.__mul__ ( self,
AffineXf2d v )
composition of two transformations:
\\f( y = (u * v) ( x ) = u( v( x ) ) = ( u.A * ( v.A * x + v.b ) + u.b ) = ( u.A * v.A ) * x + ( u.A * v.b + u.b ) \\f)

◆ __ne__()

bool meshlib.mrmeshpy.AffineXf2d.__ne__ ( self,
AffineXf2d b )

◆ inverse()

AffineXf2d meshlib.mrmeshpy.AffineXf2d.inverse ( self)
computes inverse transformation

◆ linear()

AffineXf2d meshlib.mrmeshpy.AffineXf2d.linear ( Matrix2d A)
static
creates linear-only transformation (without translation)

◆ linearOnly()

Vector2d meshlib.mrmeshpy.AffineXf2d.linearOnly ( self,
Vector2d x )
applies only linear part of the transformation to given vector (e.g. to normal) skipping adding shift (b)
for example if this is a rigid transformation, then only rotates input vector

◆ translation()

AffineXf2d meshlib.mrmeshpy.AffineXf2d.translation ( Vector2d b)
static
creates translation-only transformation (with identity linear component)

◆ xfAround()

AffineXf2d meshlib.mrmeshpy.AffineXf2d.xfAround ( Matrix2d A,
Vector2d stable )
static
creates transformation with given linear part with given stable point

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