presto-main/src/main/java/io/prestosql/operator/PagesRTreeIndex.java/PagesRTreeIndex/testReferencePoint
class PagesRTreeIndex:    private boolean testReferencePoint(Envelope probeEnvelope, OGCGeometry buildGeometry, int partition)
    {
        Envelope buildEnvelope = getEnvelope(buildGeometry);
        Envelope intersection = buildEnvelope.intersection(probeEnvelope);
        if (intersection.isNull()) {
            return false;
        }

        Rectangle extent = partitions.get(partition);

        double x = intersection.getMinX();
        double y = intersection.getMinY();
        return x >= extent.getXMin() && x < extent.getXMax() && y >= extent.getYMin() && y < extent.getYMax();
    }