public final class BoundingBoxContains extends Object
The other objects can be points, other bounding boxes etc.
Constructor and Description |
---|
BoundingBoxContains(BoundingBox box)
Create with the
BoundingBox that is queried. |
Modifier and Type | Method and Description |
---|---|
boolean |
box(BoundingBox maybeContainedInside)
Is this other bounding-box fully contained within this bounding box?
|
boolean |
point(ReadableTuple3i point)
Is this point within the bounding-box?
|
boolean |
pointIgnoreZ(Point3i point)
Like
point(ReadableTuple3i) but ignores the z-dimension. |
boolean |
x(int value)
Is this value in the X-dimension within the bounding box range?
|
boolean |
y(int value)
Is this value in the Y-dimension within the bounding box range?
|
boolean |
z(int value)
Is this value in the Z-dimension within the bounding box range?
|
public BoundingBoxContains(BoundingBox box)
BoundingBox
that is queried.box
- the bounding-box to query whether other entities are contained within it.public boolean x(int value)
value
- a value to be tested whether it lies within the bounding-box on the X-axis.public boolean y(int value)
value
- a value to be tested whether it lies within the bounding-box on the Y-axis.public boolean z(int value)
value
- a value to be tested whether it lies within the bounding-box on the Z-axis.public boolean point(ReadableTuple3i point)
point
- point to test whether it lies within the bounding-box.public boolean pointIgnoreZ(Point3i point)
point(ReadableTuple3i)
but ignores the z-dimension.point
- point to test whether it lies within the bounding-box.public boolean box(BoundingBox maybeContainedInside)
maybeContainedInside
- box to test whether it is contained inside or not.maybeContainedInside
entirely lies inside the bounding-box.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.