Package chunmap.model.crs.transf

Examples of chunmap.model.crs.transf.AffineTransform


  private Geometry getGeometry(CPoint p1, CPoint p2) {

    Vector v1 = new Vector(p1, p2);
    Vector v2 = new Vector(new Coordinate2D(0, 0), new Coordinate2D(0, 1));
    double angle = v1.computeAngle(v2);
    AffineTransform transf = AffineTransform.rotate(0, 0, angle + Math.PI
        / 2d);
    AffineTransform transf2 = transf.accumulate(AffineTransform.pan(p2
        .getX(), p2.getY()));
    return geometry.transform(transf2);
  }
View Full Code Here

TOP

Related Classes of chunmap.model.crs.transf.AffineTransform

Copyright © 2018 www.massapicom. 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.