/** * 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 */ public AffineTransformation shear(double xShear, double yShear) { compose(shearInstance(xShear, yShear)); return this; }
public void testShear1() throws IOException, ParseException { AffineTransformation t = AffineTransformation.shearInstance(2, 3); checkTransformation(10, 0, t, 10, 30); }