Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/Transform2D.java @ 610:ea2191b1299d
#170 Changed the DOM manipulation while zoom and drag operation.
flys-client/trunk@2223 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 23 Jun 2011 17:46:08 +0000 |
parents | 017371801479 |
children | ef745bc6bed9 |
comparison
equal
deleted
inserted
replaced
609:418be98527f0 | 610:ea2191b1299d |
---|---|
1 package de.intevation.flys.client.shared; | 1 package de.intevation.flys.client.shared; |
2 | 2 |
3 import java.io.Serializable; | 3 import java.io.Serializable; |
4 | |
5 import com.google.gwt.core.client.GWT; | |
4 | 6 |
5 | 7 |
6 /** | 8 /** |
7 * This object supports a linear transformation to transform xy coordinates into | 9 * This object supports a linear transformation to transform xy coordinates into |
8 * an other coordinate system based on scale and translation values. | 10 * an other coordinate system based on scale and translation values. |
46 double resX = sx * x + tx; | 48 double resX = sx * x + tx; |
47 double resY = sy * y + ty; | 49 double resY = sy * y + ty; |
48 | 50 |
49 return new double[] { resX, resY }; | 51 return new double[] { resX, resY }; |
50 } | 52 } |
53 | |
54 | |
55 public void dumpGWT() { | |
56 GWT.log("SX = " + sx); | |
57 GWT.log("SY = " + sy); | |
58 GWT.log("TX = " + tx); | |
59 GWT.log("TY = " + ty); | |
60 } | |
51 } | 61 } |
52 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 62 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |