scale method

AffineTransformation scale(
  1. double xScale,
  2. double yScale
)

Updates the value of this transformation to that of a scale transformation composed with the current value.

@param xScale the value to scale by in the x direction @param yScale the value to scale by in the y direction @return this transformation, with an updated matrix

Implementation

AffineTransformation scale(double xScale, double yScale) {
  compose(scaleInstance(xScale, yScale));
  return this;
}