A transform consisting of a translation, a rotation, and a uniform scale.

Used by Canvas.drawAtlas. This is a more efficient way to represent these simple transformations than a full matrix.

Constructors

RSTransform(double scos, double ssin, double tx, double ty)

Creates an RSTransform.

RSTransform.fromComponents({double rotation, double scale, double anchorX, double anchorY, double translateX, double translateY })

Creates an RSTransform from its individual components.

factory

Properties

scos double

The cosine of the rotation multiplied by the scale factor.

read-only
ssin double

The sine of the rotation multiplied by that same scale factor.

read-only
tx double

The x coordinate of the translation, minus scos multiplied by the x-coordinate of the rotation point, plus ssin multiplied by the y-coordinate of the rotation point.

read-only
ty double

The y coordinate of the translation, minus ssin multiplied by the x-coordinate of the rotation point, minus scos multiplied by the y-coordinate of the rotation point.

read-only
hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() String

Returns a string representation of this object.

inherited