@Override
    public boolean equals(Object other) {
        if (!(other instanceof BoundingBox)) {
            return false;
        }

        if (this == other) {
            return true;
        }

        BoundingBox otherBoundingBox = (BoundingBox) other;
        if (Float.compare(xExtent, otherBoundingBox.xExtent) != 0) {
            return false;
        } else if (Float.compare(yExtent, otherBoundingBox.yExtent) != 0) {
            return false;
        } else if (Float.compare(zExtent, otherBoundingBox.zExtent) != 0) {
            return false;
        } else {
            return super.equals(otherBoundingBox);
        }
    }
Tests for exact equality with the argument, distinguishing -0 from 0. If
{@code other} is null, false is returned. Either way, the current
instance is unaffected.

@param other the object to compare (may be null, unaffected)
@return true if {@code this} and {@code other} have identical values,
    otherwise false
jme3-core/src/main/java/com/jme3/bounding/BoundingBox.java