RSXform

class RSXform

A compressed form of a rotation+scale matrix.

[ fSCos -fSSin fTx ] [ fSSin fSCos fTy ] [ 0 0 1 ]

Methods

Make

MakeFromRadians

__init__

rectStaysRect

set

setIdentity

toQuad

Overloaded function.

toTriStrip

Attributes

fSCos

fSSin

fTx

fTy

Methods

static RSXform.Make(scos: float, ssin: float, tx: float, ty: float) skia.RSXform
static RSXform.MakeFromRadians(scale: float, radians: float, tx: float, ty: float, ax: float, ay: float) skia.RSXform
RSXform.__init__(self: skia.RSXform, scos: float, ssin: float, tx: float, ty: float) None
RSXform.rectStaysRect(self: skia.RSXform) bool
RSXform.set(self: skia.RSXform, scos: float, ssin: float, tx: float, ty: float) None
RSXform.setIdentity(self: skia.RSXform) None
RSXform.toQuad(*args, **kwargs)

Overloaded function.

  1. toQuad(self: skia.RSXform, width: float, height: float, quqd: skia.Point) -> None

  2. toQuad(self: skia.RSXform, size: skia.Size, quqd: skia.Point) -> None

RSXform.toTriStrip(self: skia.RSXform, width: float, height: float, strip: skia.Point) None

Attributes

RSXform.fSCos
RSXform.fSSin
RSXform.fTx
RSXform.fTy