Changeset 1733 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2009-07-05T10:48:09+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r1728 r1733 148 148 149 149 public LatLon interpolate(LatLon ll2, double proportion) { 150 return new LatLon(this. x+ proportion * (ll2.x- this.x),151 this. y+ proportion * (ll2.y- this.y));150 return new LatLon(this.lat() + proportion * (ll2.lat() - this.lat()), 151 this.lon() + proportion * (ll2.lon() - this.lon())); 152 152 } 153 153 154 154 public LatLon getCenter(LatLon ll2) { 155 return new LatLon((this. x+ ll2.x)/2.0, (this.y+ ll2.y)/2.0);155 return new LatLon((this.lat() + ll2.lat())/2.0, (this.lon() + ll2.lon())/2.0); 156 156 } 157 157
Note:
See TracChangeset
for help on using the changeset viewer.