Checks if this bounding box fully contains another bounding box.
True if this bounding box fully contains the other, false otherwise.
The other bounding box to check.
Checks if this bounding box fully contains another bounding box in the 2D plane (ignores the z-axis).
True if this bounding box fully contains the other in 2D, false otherwise.
The other bounding box to check.
Optional
translation: numberCalculates the intersection bounding box between this and another bounding box.
A new BoundingBox representing the intersection, or null if there is no intersection.
The other bounding box to intersect with.
Checks if this bounding box overlaps with another bounding box.
True if the bounding boxes overlap, false otherwise.
The other bounding box to check against.
Calculates the union bounding box between this and another bounding box.
A new BoundingBox representing the union.
The other bounding box to unite with.
Represents a bounding box in 3D space.