4748495051525354555657
float maxY2 = Float.MIN_VALUE; for (final HasGeometry item : items) { Rectangle r = item.geometry().mbr(); if (r.x1() < minX1) minX1 = r.x1(); if (r.y1() < minY1) minY1 = r.y1(); if (r.x2() > maxX2) maxX2 = r.x2(); if (r.y2() > maxY2) maxY2 = r.y2();
4849505152535455565758
for (final HasGeometry item : items) { Rectangle r = item.geometry().mbr(); if (r.x1() < minX1) minX1 = r.x1(); if (r.y1() < minY1) minY1 = r.y1(); if (r.x2() > maxX2) maxX2 = r.x2(); if (r.y2() > maxY2) maxY2 = r.y2(); }