Transform2D class

transforms used by sprites

Constructors

Transform2D({Offset translate = Offset.zero, double scale = 1.0, double rotation = 0.0, Offset anchor = Offset.zero})
Transform2D.fromJson(dynamic json)
factory

Properties

anchor Offset
getter/setter pair
asRsTransform RSTransform
convenient method used by SpriteBatch
no setter
hashCode int
The hash code for this object.
no setterinherited
rotation double
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
getter/setter pair
translate Offset
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator +(Transform2D arg) Transform2D
used by AnimatedSprite to combine the transform of itself and a Frame
operator ==(Object other) bool
The equality operator.
inherited