h2/src/main/org/h2/mvstore/rtree/SpatialDataType.java
/**
     * Check whether the two objects overlap.
     *
     * @param objA the first object
     * @param objB the second object
     * @return true if they overlap
     */
Check whether the two objects overlap.
@param objA the first object
@param objB the second object
@return true if they overlap
Check whether the two objects overlap . @param objA the first object @param objB the second object @return true if they overlap
public boolean isOverlap(Object objA, Object objB) {
        SpatialKey a = (SpatialKey) objA;
        SpatialKey b = (SpatialKey) objB;
        for (int i = 0; i < dimensions; i++) {
            if (a.max(i) < b.min(i) || a.min(i) > b.max(i)) {
                return false;
            }
        }
        return true;
    }
public boolean isOverlap ( Object objA , Object objB ) { SpatialKey a = ( SpatialKey ) objA ; SpatialKey b = ( SpatialKey ) objB ; for ( int i = 0 ; i < dimensions ; i ++ ) { if ( a . max ( i ) < b . min ( i ) || a . min ( i ) > b . max ( i ) ) { return false ; } } return true ; }
Check whether the two objects overlap.
Check whether the two objects overlap .