shear method

AffineTransformation shear(
  1. double xShear,
  2. double yShear
)

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

@param xShear the value to shear by in the x direction @param yShear the value to shear by in the y direction @return this transformation, with an updated matrix

Implementation

AffineTransformation shear(double xShear, double yShear) {
  compose(shearInstance(xShear, yShear));
  return this;
}