The matrix transformation for this RenderTextureQuad to transform target coordinates to texture coordinates.
Texture coordinates are in the range from (0, 0) to (width, height). Target coordinates take the pixelRatio into account.
Source
Matrix get drawMatrix { var pr = this.pixelRatio; if (rotation == 0) { var tx = sourceRectangle.left + offsetRectangle.left; var ty = sourceRectangle.top + offsetRectangle.top; return new Matrix(pr, 0.0, 0.0, pr, tx, ty); } else if (rotation == 1) { var tx = sourceRectangle.right - offsetRectangle.top; var ty = sourceRectangle.top + offsetRectangle.left; return new Matrix(0.0, pr, 0.0 - pr, 0.0, tx, ty); } else if (rotation == 2) { var tx = sourceRectangle.right - offsetRectangle.left; var ty = sourceRectangle.bottom - offsetRectangle.top; return new Matrix(0.0 - pr, 0.0, 0.0, 0.0 - pr, tx, ty); } else if (rotation == 3) { var tx = sourceRectangle.left + offsetRectangle.top; var ty = sourceRectangle.bottom - offsetRectangle.left; return new Matrix(0.0, 0.0 - pr, pr, 0.0, tx, ty); } else { throw new Error(); } }