Matrix - Gaphas

Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# 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)

  Matrix wrapper.

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