Affine transforms

methods to apply 2D affine transformations
# created on April 5th 2022 by M. Reichmann (remichae@phys.ethz.ch)
# --------------------------------------------------------

source

scale_matrix

 scale_matrix (sx=1, sy=None)

source

transition_matrix

 transition_matrix (ox=0, oy=0)

source

rotation_matrix

 rotation_matrix (rx=0, ry=None)

source

matrix_order

 matrix_order (order)

source

multiply

 multiply (m0, m1, m2)

returns: M0 * M1 * M2


source

matrix

 matrix (sx=1, sy=1, ox=0, oy=0, rx=0, ry=None, order='srt')

source

transform

 transform (x, y, sx=1, sy=1, ox=0, oy=0, rx=0, ry=None, order='srt',
            invert=False)

source

m_transform

 m_transform (m, x, y, invert=False)