h2/src/main/org/h2/mvstore/rtree/SpatialDataType.java
/**
     * Create a bounding box starting with the given object.
     *
     * @param objA the object
     * @return the bounding box
     */
Create a bounding box starting with the given object.
@param objA the object
@return the bounding box
Create a bounding box starting with the given object . @param objA the object @return the bounding box
Object createBoundingBox(Object objA) {
        float[] minMax = new float[dimensions * 2];
        SpatialKey a = (SpatialKey) objA;
        for (int i = 0; i < dimensions; i++) {
            minMax[i + i] = a.min(i);
            minMax[i + i + 1] = a.max(i);
        }
        return new SpatialKey(0, minMax);
    }
Object createBoundingBox ( Object objA ) { float [ ] minMax = new float [ dimensions * 2 ] ; SpatialKey a = ( SpatialKey ) objA ; for ( int i = 0 ; i < dimensions ; i ++ ) { minMax [ i + i ] = a . min ( i ) ; minMax [ i + i + 1 ] = a . max ( i ) ; } return new SpatialKey ( 0 , minMax ) ; }
Create a bounding box starting with the given object.
Create a bounding box starting with the given object .