scaled method
Creates a new affine matrix rotated by x
and y
.
If y
is not specified, it is defaulted to the same value as x
.
Implementation
AffineMatrix scaled(double x, [double? y]) {
y ??= x;
if (x == 1 && y == 1) {
return this;
}
return AffineMatrix(
a * x,
b * x,
c * y,
d * y,
e,
f,
_m4_10 * x,
);
}