/** Returns {@code true} if the provided bounds are contained by this bounding box. */ public boolean contains(final BoundingBox3D bbox) { ensureCompatibleReferenceSystem(bbox); return covers(getJTSEnvelope(bbox)); }
/** Check if this bounding box intersects the provided bounds. */ public boolean intersects(final BoundingBox3D bbox) { ensureCompatibleReferenceSystem(bbox); return intersects(getJTSEnvelope(bbox)); }
/** Include the provided bounding box, expanding as necessary. */ public void include(final BoundingBox3D bbox) { if (crs == null) { this.crs = bbox.getCoordinateReferenceSystem(); } expandToInclude(getJTSEnvelope(bbox)); }
/** * Initialize the bounding box with another bounding box. * * @since 2.4 */ public void setBounds(final BoundingBox3D bbox) { ensureCompatibleReferenceSystem(bbox); init(getJTSEnvelope(bbox)); }