Chemical Data Processing Library Python API - Version 1.4.0
Public Member Functions | Properties | List of all members
CDPL.Math.Vector2FArrayAlignmentCalculator Class Reference
+ Inheritance diagram for CDPL.Math.Vector2FArrayAlignmentCalculator:

Public Member Functions

None __init__ ()
 Initializes the Vector2FArrayAlignmentCalculator instance.
 
None __init__ (Vector2FArrayAlignmentCalculator algo)
 Initializes a copy of the Vector2FArrayAlignmentCalculator instance algo. More...
 
int getObjectID ()
 Returns the numeric identifier (ID) of the wrapped C++ class instance. More...
 
Vector2FArrayAlignmentCalculator assign (Vector2FArrayAlignmentCalculator algo)
 Replaces the current state of self with a copy of the state of the Vector2FArrayAlignmentCalculator instance algo. More...
 
FMatrix getTransform ()
 
bool calculate (Vector2FArray points, Vector2FArray ref_points, bool do_center=True, int max_svd_iter=0)
 
bool calculate (Vector2FArray points, Vector2FArray ref_points, ConstFVectorExpression weights, bool do_center=True, int max_svd_iter=0)
 
bool calculate (Vector2FArray points, Vector2FArray ref_points, ConstDVectorExpression weights, bool do_center=True, int max_svd_iter=0)
 

Properties

 objectID = property(getObjectID)
 
 transform = property(getTransform)
 

Constructor & Destructor Documentation

◆ __init__()

None CDPL.Math.Vector2FArrayAlignmentCalculator.__init__ ( Vector2FArrayAlignmentCalculator  algo)

Initializes a copy of the Vector2FArrayAlignmentCalculator instance algo.

Parameters
algoThe Vector2FArrayAlignmentCalculator instance to copy.

Member Function Documentation

◆ getObjectID()

int CDPL.Math.Vector2FArrayAlignmentCalculator.getObjectID ( )

Returns the numeric identifier (ID) of the wrapped C++ class instance.

Different Python Vector2FArrayAlignmentCalculator instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b thus cannot tell reliably whether the two Vector2FArrayAlignmentCalculator instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID().

Returns
The numeric ID of the internally referenced C++ class instance.

◆ assign()

Vector2FArrayAlignmentCalculator CDPL.Math.Vector2FArrayAlignmentCalculator.assign ( Vector2FArrayAlignmentCalculator  algo)

Replaces the current state of self with a copy of the state of the Vector2FArrayAlignmentCalculator instance algo.

Parameters
algoThe Vector2FArrayAlignmentCalculator instance to copy.
Returns
self