h2/src/main/org/h2/mvstore/rtree/SpatialDataType.java
/**
     * Check whether a is completely inside b and does not touch the
     * given bound.
     *
     * @param objA the object to check
     * @param objB the bounds
     * @return true if a is completely inside b
     */
Check whether a is completely inside b and does not touch the
given bound.

@param objA the object to check
@param objB the bounds
@return true if a is completely inside b
Check whether a is completely inside b and does not touch the given bound . @param objA the object to check @param objB the bounds @return true if a is completely inside b
public boolean isInside(Object objA, Object objB) {
        SpatialKey a = (SpatialKey) objA;
        SpatialKey b = (SpatialKey) objB;
        for (int i = 0; i < dimensions; i++) {
            if (a.min(i) <= b.min(i) || a.max(i) >= b.max(i)) {
                return false;
            }
        }
        return true;
    }
public boolean isInside ( Object objA , Object objB ) { SpatialKey a = ( SpatialKey ) objA ; SpatialKey b = ( SpatialKey ) objB ; for ( int i = 0 ; i < dimensions ; i ++ ) { if ( a . min ( i ) <= b . min ( i ) || a . max ( i ) >= b . max ( i ) ) { return false ; } } return true ; }
Check whether a is completely inside b and does not touch the
 given bound.
Check whether a is completely inside b and does not touch the given bound .