Package org.geomajas.puregwt.client.spatial

Examples of org.geomajas.puregwt.client.spatial.MatrixImpl


        switch (to) {
          case SCREEN:
            if (scale > 0) {
              double dX = -(position.getX() * scale) + mapWidth / 2;
              double dY = position.getY() * scale + mapHeight / 2;
              return new MatrixImpl(scale, 0, 0, -scale, dX, dY);
            }
            return new MatrixImpl(1, 0, 0, 1, 0, 0);
          case WORLD:
            return Matrix.IDENTITY;
        }
    }
    return null;
View Full Code Here


        switch (to) {
          case SCREEN:
            if (scale > 0) {
              double dX = -(position.getX() * scale) + mapWidth / 2;
              double dY = position.getY() * scale + mapHeight / 2;
              return new MatrixImpl(1, 0, 0, 1, dX, dY);
            }
            return new MatrixImpl(1, 0, 0, 1, 0, 0);
          case WORLD:
            return Matrix.IDENTITY;
        }
    }
    return null;
View Full Code Here

TOP

Related Classes of org.geomajas.puregwt.client.spatial.MatrixImpl

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.