public boolean isSimilar(BoundingBox aabb, float epsilon) {
        if (aabb == null) {
            return false;
        } else if (Float.compare(Math.abs(aabb.xExtent - xExtent), epsilon) > 0) {
            return false;
        } else if (Float.compare(Math.abs(aabb.yExtent - yExtent), epsilon) > 0) {
            return false;
        } else if (Float.compare(Math.abs(aabb.zExtent - zExtent), epsilon) > 0) {
            return false;
        } else if (!center.isSimilar(aabb.getCenter(), epsilon)) {
            return false;
        }
        // The checkPlane field is ignored.
        return true;
    }
Tests for approximate equality with the specified bounding box, using the
specified tolerance. If {@code other} is null, false is returned. Either
way, the current instance is unaffected.

@param aabb the bounding box to compare (unaffected) or null for none
@param epsilon the tolerance for each component
@return true if all components are within tolerance, otherwise false
jme3-core/src/main/java/com/jme3/bounding/BoundingBox.java