Matrix#

The Matrix class used to records item placement (translation), scale and skew.

class gaphas.matrix.Matrix(xx: float = 1.0, yx: float = 0.0, xy: float = 0.0, yy: float = 1.0, x0: float = 0.0, y0: float = 0.0, matrix: cairo.Matrix | None = None)[source]#

Matrix wrapper.

>>> Matrix()
Matrix(1.0, 0.0, 0.0, 1.0, 0.0, 0.0)