Copies another bounding box. @param other the other bounding box @return this bounding box
(@NotNull BoundingBox other)
| 347 | * @return this bounding box |
| 348 | */ |
| 349 | @NotNull |
| 350 | public BoundingBox copy(@NotNull BoundingBox other) { |
| 351 | Preconditions.checkArgument(other != null, "Other bounding box is null!"); |
| 352 | return this.resize(other.getMinX(), other.getMinY(), other.getMinZ(), other.getMaxX(), other.getMaxY(), other.getMaxZ()); |
| 353 | } |
| 354 | |
| 355 | /** |
| 356 | * Expands this bounding box by the given values in the corresponding |