TransformationFunction
The TransformationFunction class is an abstract class It provides the scaffolding for representing a single transformation operation
__init__(self):
Initializes a transformation function based on the transfdata
transfdata
:Any
@property
inverse(self):
Returns the inverse of the transformation
:returns
:_
merge(self, other):
Tries to merge with another TransformationFunction
other
:TransformationFunction
a TransformationFunction to try to merge with
:returns
:TransformationFunction
t f u n c
operate(self, coords, shift=True):
Operates on the coords. Must be able to deal with a list of coordinates, optimally in an efficient manner
coords
:np.ndarry
the list of coordinates to apply the transformation to