Changeset 1169 in josm for trunk/src/org/openstreetmap/josm/data/coor/Coordinate.java
- Timestamp:
- 2008-12-23T15:07:05+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/Coordinate.java
r1094 r1169 7 7 /** 8 8 * Base class of points of both coordinate systems. 9 * 10 * The variables are default package protected to allow routines in the 9 * 10 * The variables are default package protected to allow routines in the 11 11 * data package to access them directly. 12 * 13 * As the class itself is package protected too, it is not visible 14 * outside of the data package. Routines there should only use LatLon or 12 * 13 * As the class itself is package protected too, it is not visible 14 * outside of the data package. Routines there should only use LatLon or 15 15 * EastNorth. 16 16 * 17 17 * @author imi 18 */ 18 */ 19 19 abstract class Coordinate extends Point2D implements Serializable { 20 20 21 21 protected double x; 22 22 protected double y; 23 24 25 26 * 27 28 29 30 23 24 /** 25 * Construct the point with latitude / longitude values. 26 * 27 * @param x X coordinate of the point. 28 * @param y Y coordinate of the point. 29 */ 30 Coordinate(double x, double y) { 31 31 this.x = x; this.y = y; 32 33 32 } 33 34 34 public double getX() { 35 35 return x; 36 36 } 37 37 38 38 public double getY() { 39 return y; 39 return y; 40 40 } 41 41 42 42 public void setLocation (double x, double y) { 43 this.x = x; 43 this.x = x; 44 44 this.y = y; 45 45 }
Note:
See TracChangeset
for help on using the changeset viewer.