21 package org.matsim.core.utils.geometry.transformations;
42 double yNorm = (coord.
getX() - 600000.0) / 1000000.0;
43 double xNorm = (coord.
getY() - 200000.0) / 1000000.0;
45 double longitude10000Sec =
48 0.791484 * yNorm * xNorm +
49 0.1306 * yNorm * Math.pow(xNorm, 2) -
50 0.0436 * Math.pow(yNorm, 3);
52 double latitude10000Sec =
55 0.270978 * Math.pow(yNorm, 2) -
56 0.002528 * Math.pow(xNorm, 2) -
57 0.0447 * Math.pow(yNorm, 2) * xNorm -
58 0.0140 * Math.pow(xNorm, 3);
61 return new Coord(longitude10000Sec * 100.0 / 36.0, latitude10000Sec * 100.0 / 36.0, coord.
getZ());
63 return new Coord(longitude10000Sec * 100.0 / 36.0, latitude10000Sec * 100.0 / 36.0);