scale property

The scale part of the transform. The default scale factor is (1, 1), a scale greater than 1 corresponds to expansion, and less than 1 is contraction. A negative scale is also allowed, and it corresponds to a mirror reflection around the corresponding axis. Scale factors can be different for X and Y directions.

The returned vector can be modified by the user, and the changes will be propagated back to the transform matrix.

Implementation

NotifyingVector2 get scale => _scale;
void scale=(Vector2 scale)

Implementation

set scale(Vector2 scale) => _scale.setFrom(scale);