psMat¶
- psMat.identity()¶
returns an identity matrix as a 6 element tuple
- psMat.compose(mat1, mat2)¶
returns a matrix which is the composition of the two input transformations
- psMat.inverse(mat)¶
returns a matrix which is the inverse of the input transformation. (Note: There will not always be an inverse)
- psMat.rotate(theta)¶
returns a matrix which will rotate by
theta.thetais expressed in radians
- psMat.scale(x[, y])¶
returns a matrix which will scale by
xin the horizontal direction andyin the vertical. Ifyis omitted, it will scale by the same amount (x) in both directions
- psMat.skew(theta)¶
returns a matrix which will skew by
theta(to produce an oblique font).thetais expressed in radians
- psMat.translate(x, y)¶
returns a matrix which will translate by
xin the horizontal direction andyin the vertical