public Object clone() { BoundingBox rVal = new BoundingBox(); rVal.center = (Vector3f)center.clone(); rVal.xExtent = xExtent; rVal.yExtent = yExtent; rVal.zExtent = zExtent; return rVal;
public Object clone(BoundingVolume store) { if (store != null && store instanceof BoundingBox) { BoundingBox rVal = (BoundingBox)store; rVal.center.x = center.x; rVal.center.y = center.y; rVal.center.z = center.z; rVal.xExtent = xExtent; rVal.yExtent = yExtent; rVal.zExtent = zExtent; rVal.checkPlanes[0] = checkPlanes[0]; rVal.checkPlanes[1] = checkPlanes[1]; rVal.checkPlanes[2] = checkPlanes[2]; rVal.checkPlanes[3] = checkPlanes[3]; rVal.checkPlanes[4] = checkPlanes[4]; rVal.checkPlanes[5] = checkPlanes[5]; return rVal; } else return new BoundingBox(name+"_clone", (Vector3f)center.clone(), xExtent, yExtent, zExtent);
    public Object clone() {        BoundingBox rVal = new BoundingBox();        rVal.center = (Vector3f)center.clone();        rVal.xExtent = xExtent;        rVal.yExtent = yExtent;        rVal.zExtent = zExtent;        return rVal;    }