Changeset 19094 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2024-05-31T22:28:49+02:00 (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r19093 r19094 2067 2067 * @param s arbitrary string representing a length 2068 2068 * @return the length converted to meters 2069 * @throws IllegalArgumentException if input is no valid length 2069 2070 * @since 19089 2070 2071 */ … … 2094 2095 /* NOTE: we assume -a'b" means -(a'+b") and not (-a')+b" - because of such issues SI units have been invented 2095 2096 and have been adopted by the majority of the world */ 2096 return (Double.valueOf(m.group(2))*0.3048+Double.valueOf(m.group(4))*0.0254)*(m.group(1).isEmpty() ?1.0:-1.0);2097 return (Double.valueOf(m.group(2))*0.3048+Double.valueOf(m.group(4))*0.0254)*(m.group(1).isEmpty() ? 1.0 : -1.0); 2097 2098 } 2098 2099 }
Note:
See TracChangeset
for help on using the changeset viewer.