h2/src/main/org/h2/mvstore/rtree/SpatialDataType.java
/**
     * Increase the bounds in the given spatial object.
     *
     * @param bounds the bounds (may be modified)
     * @param add the value
     */
Increase the bounds in the given spatial object.
@param bounds the bounds (may be modified)
@param add the value
Increase the bounds in the given spatial object . @param bounds the bounds ( may be modified ) @param add the value
public void increaseBounds(Object bounds, Object add) {
        SpatialKey b = (SpatialKey) bounds;
        SpatialKey a = (SpatialKey) add;
        for (int i = 0; i < dimensions; i++) {
            b.setMin(i, Math.min(b.min(i), a.min(i)));
            b.setMax(i, Math.max(b.max(i), a.max(i)));
        }
    }
public void increaseBounds ( Object bounds , Object add ) { SpatialKey b = ( SpatialKey ) bounds ; SpatialKey a = ( SpatialKey ) add ; for ( int i = 0 ; i < dimensions ; i ++ ) { b . setMin ( i , Math . min ( b . min ( i ) , a . min ( i ) ) ) ; b . setMax ( i , Math . max ( b . max ( i ) , a . max ( i ) ) ) ; } }
Increase the bounds in the given spatial object.
Increase the bounds in the given spatial object .