setToScale method
Sets this transformation to be a scaling. The transformation matrix for a scale has the value:
| xScale 0 dx | | 1 yScale dy | | 0 0 1 |
@param xScale the amount to scale x-ordinates by @param yScale the amount to scale y-ordinates by @return this transformation, with an updated matrix
Implementation
AffineTransformation setToScale(double xScale, double yScale) {
m00 = xScale;
m01 = 0.0;
m02 = 0.0;
m10 = 0.0;
m11 = yScale;
m12 = 0.0;
return this;
}