Ignore:
Timestamp:
2009-07-05T10:48:09+02:00 (10 years ago)
Author:
stoecker
Message:

fixed #2821, #2775 - agpifojpicture position wrong, preferences callable twice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/LatLon.java

    r1728 r1733  
    148148
    149149    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()));
    152152    }
    153153
    154154    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);
    156156    }
    157157
Note: See TracChangeset for help on using the changeset viewer.