Changeset 12514 in josm
- Timestamp:
- 2017-07-26T01:23:23+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
r12381 r12514 1034 1034 return !inside(env, codes); 1035 1035 } 1036 1037 /** 1038 * Determines if the object centroid lies at given lat/lon coordinates. 1039 * @param env the environment 1040 * @param lat latitude 1041 * @param lon longitude 1042 * @return {@code true} if the object centroid lies at given lat/lon coordinates 1043 * @since 12514 1044 */ 1045 public static boolean at(Environment env, double lat, double lon) { // NO_UCD (unused code) 1046 return new LatLon(lat, lon).equalsEpsilon(center(env)); 1047 } 1036 1048 } 1037 1049 … … 1308 1320 StringBuilder b = new StringBuilder("ParameterFunction~"); 1309 1321 b.append(m.getName()).append('('); 1310 for (int i = 0; i < args.size(); ++i) {1322 for (int i = 0; i < expectedParameterTypes.length; ++i) { 1311 1323 if (i > 0) b.append(','); 1312 b.append(expectedParameterTypes[i]).append(' ').append(args.get(i)); 1324 b.append(expectedParameterTypes[i]); 1325 if (!needsEnvironment) { 1326 b.append(' ').append(args.get(i)); 1327 } else if (i > 0) { 1328 b.append(' ').append(args.get(i-1)); 1329 } 1313 1330 } 1314 1331 b.append(')');
Note:
See TracChangeset
for help on using the changeset viewer.