BoundingBox tmpBox = new BoundingBox(boundsObject); tmpBox.transform(matrix); this.set(tmpBox); this.set(boundsObject); this.transform(matrix); BoundingPolytope tmpPolytope = new BoundingPolytope(boundsObject); tmpPolytope.transform(matrix); this.set(tmpPolytope); } else { throw new IllegalArgumentException(J3dI18N.getString("BoundingSphere5"));
newBoundSphere.set(null); return false; newBoundSphere.set(boundsObject); return true; newBoundSphere.set(this); return true; BoundingBox sbox = new BoundingBox( this ); // convert sphere to box newBoundSphere.set( tbox ); // set sphere to the intersection of 2 boxes return true; } else { newBoundSphere.set(null); return false; (center.z-sphere.center.z)*(center.z-sphere.center.z) ); if ( dis > radius+sphere.radius) { newBoundSphere.set(null); return false; } else if( dis+radius <= sphere.radius ) { // this sphere is contained within boundsObject newBoundSphere.set( tbox ); // set sphere to the intersection of 2 boxesf return true; } else { newBoundSphere.set(null); return false;
newBoundSphere.set(null); return false; newBoundSphere.set(null); return false; newBoundSphere.combine( tbox ); } else { newBoundSphere.set( tbox ); // set sphere to the intersection of 2 boxesf status = true; newBoundSphere.combine( tbox ); } else { newBoundSphere.set( tbox ); // set sphere to the intersection of 2 boxesf status = true; newBoundSphere.set(null); return status;
this.set(boundsObjects[i++]);
this.set(boundsObjects[i++]); if(boundsIsInfinite) return;
this.set(boundsObject); return;