Changeset 36 in josm for src/org/openstreetmap/josm/data
- Timestamp:
- 2005-12-29T02:06:38+01:00 (19 years ago)
- Location:
- src/org/openstreetmap/josm/data
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/data/Preferences.java
r33 r36 19 19 import org.jdom.output.XMLOutputter; 20 20 import org.openstreetmap.josm.data.projection.LatitudeLongitude; 21 import org.openstreetmap.josm.data.projection.Mercator; 21 22 import org.openstreetmap.josm.data.projection.Projection; 22 23 import org.openstreetmap.josm.data.projection.UTM; … … 69 70 */ 70 71 public static final Projection[] allProjections = new Projection[]{ 72 new Mercator(), 71 73 new UTM(), 72 74 new LatitudeLongitude() -
src/org/openstreetmap/josm/data/osm/LineSegment.java
r23 r36 1 1 package org.openstreetmap.josm.data.osm; 2 2 3 import org.openstreetmap.josm.data.GeoPoint; 3 4 import org.openstreetmap.josm.data.osm.visitor.Visitor; 4 5 … … 35 36 visitor.visit(this); 36 37 } 38 39 /** 40 * @return <code>true</code>, if the <code>ls</code> occupy 41 * exactly the same place as <code>this</code>. 42 */ 43 public boolean equalPlace(LineSegment ls) { 44 if (equals(ls)) 45 return true; 46 GeoPoint s1 = start.coor; 47 GeoPoint s2 = ls.start.coor; 48 GeoPoint e1 = end.coor; 49 GeoPoint e2 = ls.end.coor; 50 return ((s1.equalsLatLon(s2) && e1.equalsLatLon(e2)) || 51 (s1.equalsLatLon(e2) && e1.equalsLatLon(s2))); 52 } 37 53 }
Note:
See TracChangeset
for help on using the changeset viewer.