shearInstance static method

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

Creates a transformation for a shear.

@param xShear the value to shear by in the x direction @param yShear the value to shear by in the y direction @return a transformation for the shear

Implementation

static AffineTransformation shearInstance(double xShear, double yShear) {
  AffineTransformation trans = new AffineTransformation();
  trans.setToShear(xShear, yShear);
  return trans;
}