this.center.addLocal(vBox.center).multLocal(.5f);   this.xExtent = Math.max(Math.abs(oldcenterX - xExtent - this.center.x), Math.abs(oldcenterX + xExtent - this.center.x)); this.yExtent = Math.max(Math.abs(oldcenterY - yExtent - this.center.y), Math.abs(oldcenterY + yExtent - this.center.y)); this.zExtent = Math.max(Math.abs(oldcenterZ - zExtent - this.center.z), Math.abs(oldcenterZ + zExtent - this.center.z));   this.xExtent = Math.max(Math.abs(vBox.center.x - vBox.xExtent - this.center.x), this.xExtent); this.xExtent = Math.max(Math.abs(vBox.center.x + vBox.xExtent - this.center.x), this.xExtent); this.yExtent = Math.max(Math.abs(vBox.center.y - vBox.yExtent - this.center.y), this.yExtent); this.yExtent = Math.max(Math.abs(vBox.center.y + vBox.yExtent - this.center.y), this.yExtent); this.zExtent = Math.max(Math.abs(vBox.center.z - vBox.zExtent - this.center.z), this.zExtent); this.zExtent = Math.max(Math.abs(vBox.center.z + vBox.zExtent - this.center.z), this.zExtent);  return this;
return merge(vBox, this);
    public BoundingVolume mergeLocal(BoundingVolume volume) {        if(volume == null) {            return this;        }        if (!(volume instanceof BoundingBox)) {            return this;        } else {            float oldcenterX = center.x;            float oldcenterY = center.y;            float oldcenterZ = center.z;            BoundingBox vBox = (BoundingBox)volume;            this.center.addLocal(vBox.center).multLocal(.5f);        // check this box for new extents            this.xExtent = Math.max(Math.abs(oldcenterX - xExtent - this.center.x), Math.abs(oldcenterX + xExtent - this.center.x));            this.yExtent = Math.max(Math.abs(oldcenterY - yExtent - this.center.y), Math.abs(oldcenterY + yExtent - this.center.y));            this.zExtent = Math.max(Math.abs(oldcenterZ - zExtent - this.center.z), Math.abs(oldcenterZ + zExtent - this.center.z));        // check second box for new extents            this.xExtent = Math.max(Math.abs(vBox.center.x - vBox.xExtent - this.center.x), this.xExtent);            this.xExtent = Math.max(Math.abs(vBox.center.x + vBox.xExtent - this.center.x), this.xExtent);            this.yExtent = Math.max(Math.abs(vBox.center.y - vBox.yExtent - this.center.y), this.yExtent);            this.yExtent = Math.max(Math.abs(vBox.center.y + vBox.yExtent - this.center.y), this.yExtent);            this.zExtent = Math.max(Math.abs(vBox.center.z - vBox.zExtent - this.center.z), this.zExtent);            this.zExtent = Math.max(Math.abs(vBox.center.z + vBox.zExtent - this.center.z), this.zExtent);            return this;        }    }