14.2 Subclasses of trafo

The trafo module provides a number of subclasses of the trafo class, each of which corresponds to one trafo method. They are listed in the following table:


=.7 trafo subclass =1.3function
=.7 mirror(angle) =1.3mirroring at line through $(0, 0)$ with direction angle in degrees.
=.7 rotate(angle,
x=None, y=None)
=1.3 rotation by angle degrees around point $(\mathtt{x}, \mathtt{y})$, or $(0, 0)$, if not given.
=.7 scale(sx, sy=None,
x=None, y=None)
=1.3 scaling with scaling factor sx in $x$-direction, sy in $y$-direction ( $\mathtt{sy}=\mathtt{sx}$, if not given) with scaling center $(\mathtt{x}, \mathtt{y})$, or $(0, 0)$, if not given.
=.7 translate(x, y) =1.3 translation by vector $(\mathtt{x}, \mathtt{y})$.
=.7 slant(a, angle=0, x=None, y=None) =1.3XXX