animator.skia.RSXform

class animator.skia.RSXform

Bases: pybind11_builtins.pybind11_object

__init__(self: animator.skia.RSXform, scos: float, ssin: float, tx: float, ty: float) None

Methods

Make(scos, ssin, tx, ty)

MakeFromRadians(scale, radians, tx, ty, ax, ay)

__init__(self, scos, ssin, tx, ty)

rectStaysRect(self)

set(self, scos, ssin, tx, ty)

setIdentity(self)

toQuad(*args, **kwargs)

Overloaded function.

toTriStrip(self, width, height)

Returns a list of 4 points, the corners of the resulting strip.

Attributes

fSCos

fSSin

fTx

fTy

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

Overloaded function.

  1. toQuad(self: animator.skia.RSXform, width: float, height: float) -> List[animator.skia.Point]

    Maps a rectangle with the given width and height with this RSXform and returns a list of 4 points, the corners of the resulting quadrilateral.

    param width

    The width of the rectangle.

    param height

    The height of the rectangle.

    return

    A list of 4 points, the corners of the resulting quadrilateral.

  2. toQuad(self: animator.skia.RSXform, size: animator.skia.Size) -> List[animator.skia.Point]

    Maps a rectangle with the given size with this RSXform and returns a list of 4 points, the corners of the resulting quadrilateral.

    param size

    The size of the rectangle.

    return

    A list of 4 points, the corners of the resulting quadrilateral.

toTriStrip(self: animator.skia.RSXform, width: float, height: float) List[animator.skia.Point]

Returns a list of 4 points, the corners of the resulting strip.