Examples of skewX()


Examples of net.sf.latexdraw.parsers.svg.SVGMatrix.skewX()

  @Test
  public void testSkewX() {
    SVGMatrix m = new SVGMatrix();
    double angle = 1.92837;

    m.skewX(angle);
    assertEquals(m.getA(), 1., 0.0001);
    assertEquals(m.getB(), 0., 0.0001);
    assertEquals(m.getC(), Math.tan(angle), 0.0001);
    assertEquals(m.getD(), 1., 0.0001);
    assertEquals(m.getE(), 0., 0.0001);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.