public final class BoundingBoxIntersection extends Object
Constructor and Description |
---|
BoundingBoxIntersection(BoundingBox box) |
Modifier and Type | Method and Description |
---|---|
boolean |
existsWith(BoundingBox other)
Does intersection exist with another bounding-box?
|
boolean |
existsWithAny(List<BoundingBox> others)
Does intersection exist with with any of the others in the list?
|
Optional<BoundingBox> |
with(BoundingBox other)
Finds the intersection with another bounding-box, if it exists.
|
Optional<BoundingBox> |
withInside(BoundingBox other,
Extent containingExtent)
Finds the intersection and clamp to a containing extent.
|
public BoundingBoxIntersection(BoundingBox box)
public boolean existsWith(BoundingBox other)
other
- the other bounding-box to test intersection with.public boolean existsWithAny(List<BoundingBox> others)
others
- the other bounding-boxes to test intersection with.others
.public Optional<BoundingBox> with(BoundingBox other)
other
- the bounding-box to find intersection with.Optional.empty()
if no
intersection exists.public Optional<BoundingBox> withInside(BoundingBox other, Extent containingExtent)
other
- the bounding-box to find intersection with.containingExtent
- the extent the intersection is clamped to.Optional.empty()
if no
intersection exists.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.