AffineTransform class
AffineTransform uses a 3x3 matrix with an implied last row of [ 0 0 1 ] to transform source coordinates (x,y) into destination coordinates (x', y') according to: x' x = shear_y scale_y translate_y 1 [ 1 ] After transformation, x' = scale_x * x + shear_x * y + translate_x; y' = scale_y * y + shear_y * x + translate_y; This message is therefore composed of these six matrix elements.
Constructors
- AffineTransform({double? scaleX, double? scaleY, double? shearX, double? shearY, double? translateX, double? translateY, String? unit})
- AffineTransform.fromJson(Map json_)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scaleX ↔ double?
-
The X coordinate scaling element.
getter/setter pair
- scaleY ↔ double?
-
The Y coordinate scaling element.
getter/setter pair
- shearX ↔ double?
-
The X coordinate shearing element.
getter/setter pair
- shearY ↔ double?
-
The Y coordinate shearing element.
getter/setter pair
- translateX ↔ double?
-
The X coordinate translation element.
getter/setter pair
- translateY ↔ double?
-
The Y coordinate translation element.
getter/setter pair
- unit ↔ String?
-
The units for translate elements.
Possible string values are:
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited