Changeset 191 in josm for src/org/openstreetmap/josm/data/Bounds.java
- Timestamp:
- 2007-01-08T06:18:17+01:00 (19 years ago)
- File:
-
- 1 edited
-
src/org/openstreetmap/josm/data/Bounds.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/data/Bounds.java
r86 r191 40 40 41 41 /** 42 * @return Center of the bounding box. 43 */ 44 public LatLon center() { 45 // not sure, whether this calculation is right.. maybe there is some 46 // more complex calculation needed to get a center of a spherical 47 // dimension? 48 return new LatLon((min.lat()+max.lat())/2, (min.lon()+max.lon())/2); 49 } 50 51 /** 42 52 * Extend the bounds if necessary to include the given point. 43 53 */
Note:
See TracChangeset
for help on using the changeset viewer.
