AffineTransform

A simple AffineTranform implementation of the TransformationFunction abstract base class

 

__init__(self, tmat, shift=None): 

tmat must be a transformation matrix to work properly

  • shift: np.ndarray | None

    the shift for the transformation

  • tmat: np.ndarray

    the matrix for the linear transformation

 

@property
transform(self): 

 

@property
inverse(self): 

Returns the inverse of the transformation

  • :returns: _

 

@property
shift(self): 

 

merge(self, other): 
  • other: np.ndarray or AffineTransform

 

reverse(self): 

Inverts the matrix

  • :returns: _

 

operate(self, coords, shift=True): 
  • coords: np.ndarry

    the array of coordinates passed in

 

__repr__(self): 

Feedback

Examples

Templates

Documentation