public interface AABB3d
Modifier and Type | Method and Description |
---|---|
boolean |
contains(AABB3d box)
Returns true if the given bounding box is inside this bounding box.
|
boolean |
contains(Vector3d point)
Returns true if the given point is inside this bounding box.
|
static AABB3d |
create(AABB3d boundingBox)
Returns a new instance of a bounding box with the same bounds as in the
given bounding box.
|
static AABB3d |
create(Collection<Vector3d> points)
Returns the minimum volume axis-aligned bounding box for the given
collection of points.
|
static AABB3d |
create(Vector3d lowerBound,
Vector3d upperBound)
Returns a bounding box with the given bounds.
|
double |
distance(AABB3d box)
Returns the minimum distance between this bounding box and the given
bounding box.
|
double |
distanceSquared(AABB3d box)
Returns the square of the minimum distance between this bounding box and
the given bounding box.
|
MVector3d |
getCentroid()
Returns a copy of the centroid vector of this bounding box.
|
Collection<Segment3d> |
getEdges()
Returns the edges of this bounding box.
|
Vector3d |
getLowerBound()
Returns the lower bound of this bounding box.
|
double |
getSizeX()
Returns the size of this bounding box on the X axis.
|
double |
getSizeY()
Returns the size of this bounding box on the Y axis.
|
double |
getSizeZ()
Returns the size of this bounding box on the Z axis.
|
Vector3d |
getUpperBound()
Returns the upper bound of this bounding box.
|
double |
getVolume()
Returns the volume of this bounding box.
|
boolean |
intersects(AABB3d aabb)
Returns true if this bounding box intersects the given bounding box.
|
boolean |
isDegenerate()
Returns true if the given bounding box is degenerated.
|
static AABB3d create(AABB3d boundingBox)
boundingBox
- the bounding box whose bounds are set to the returned boxstatic AABB3d create(Collection<Vector3d> points)
points
- the points for which the minimum volume axis-aligned
bounding box is computedstatic AABB3d create(Vector3d lowerBound, Vector3d upperBound)
lowerBound
- the lower bound for the bounding boxupperBound
- the upper bound for the bounding boxboolean contains(Vector3d point)
point
- the point that is checked for containmentboolean contains(AABB3d box)
box
- the bounding box that is checked for containmentMVector3d getCentroid()
double distance(AABB3d box)
box
- the box to which the distance is computeddouble distanceSquared(AABB3d box)
box
- the box to which the squared distance is computedCollection<Segment3d> getEdges()
Vector3d getLowerBound()
double getSizeX()
double getSizeY()
double getSizeZ()
Vector3d getUpperBound()
double getVolume()
boolean intersects(AABB3d aabb)
aabb
- the bounding box with which this box is checked for
intersectionboolean isDegenerate()
Copyright © 2019 Solibri, Inc.. All rights reserved.