MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.AffineXf2f Class Reference

Public Member Functions

Vector2f __call__ (self, Vector2f x)
 
bool __eq__ (self, AffineXf2f b)
 
None __init__ (self)
 
None __init__ (self, Matrix2f A, Vector2f b)
 
AffineXf2f __mul__ (self, AffineXf2f v)
 
bool __ne__ (self, AffineXf2f b)
 
AffineXf2f inverse (self)
 
Vector2f linearOnly (self, Vector2f x)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
AffineXf2f linear (Matrix2f A)
 
AffineXf2f operator (*args, **kwargs)
 
AffineXf2f operator (*args, **kwargs)
 
AffineXf2f translation (Vector2f b)
 
AffineXf2f xfAround (Matrix2f A, Vector2f stable)
 

Static Protected Attributes

typing _offsetof_A = 0
 
typing _offsetof_b = 16
 

Detailed Description

Generated from:  MR::AffineXf2f

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

Constructor & Destructor Documentation

◆ __init__() [1/3]

None mrmeshpy.AffineXf2f.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/3]

None mrmeshpy.AffineXf2f.__init__ ( self)

◆ __init__() [3/3]

None mrmeshpy.AffineXf2f.__init__ ( self,
Matrix2f A,
Vector2f b )

Member Function Documentation

◆ __call__()

Vector2f mrmeshpy.AffineXf2f.__call__ ( self,
Vector2f x )
application of the transformation to a point

◆ __eq__()

bool mrmeshpy.AffineXf2f.__eq__ ( self,
AffineXf2f b )

◆ __mul__()

AffineXf2f mrmeshpy.AffineXf2f.__mul__ ( self,
AffineXf2f 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 mrmeshpy.AffineXf2f.__ne__ ( self,
AffineXf2f b )

◆ inverse()

AffineXf2f mrmeshpy.AffineXf2f.inverse ( self)
computes inverse transformation

◆ linear()

AffineXf2f mrmeshpy.AffineXf2f.linear ( Matrix2f A)
static
creates linear-only transformation (without translation)

◆ linearOnly()

Vector2f mrmeshpy.AffineXf2f.linearOnly ( self,
Vector2f 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

◆ operator() [1/2]

AffineXf2f mrmeshpy.AffineXf2f.operator ( * args,
** kwargs )
static

◆ operator() [2/2]

AffineXf2f mrmeshpy.AffineXf2f.operator ( * args,
** kwargs )
static

◆ translation()

AffineXf2f mrmeshpy.AffineXf2f.translation ( Vector2f b)
static
creates translation-only transformation (with identity linear component)

◆ xfAround()

AffineXf2f mrmeshpy.AffineXf2f.xfAround ( Matrix2f A,
Vector2f stable )
static
creates transformation with given linear part with given stable point

Member Data Documentation

◆ _offsetof_A

typing mrmeshpy.AffineXf2f._offsetof_A = 0
staticprotected

◆ _offsetof_b

typing mrmeshpy.AffineXf2f._offsetof_b = 16
staticprotected

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