Modifier and Type | Method and Description |
---|---|
static MAABB2d |
create(AABB2d boundingBox)
Returns a bounding box with the same bounds as in the given bounding box.
|
static MAABB2d |
create(Collection<Vector2d> points)
Returns the minimum area axis-aligned bounding box for the given
collection of points.
|
static MAABB2d |
create(Vector2d lowerBound,
Vector2d upperBound)
Returns a bounding box with the given bounds.
|
void |
extend(Collection<Vector2d> points)
Extends this axis-aligned bounding box to contain the given points.
|
void |
extend(Vector2d point)
Extends this axis-aligned bounding box to contain the given point.
|
void |
resize(double resizeValue)
Resizes this bounding box by the given value.
|
void |
set(Vector2d lowerBound,
Vector2d upperBound)
Sets the given bounds to this bounding box.
|
void |
setLowerBound(Vector2d lowerBound)
Sets the lower bound of this bounding box to the given value.
|
void |
setUpperBound(Vector2d upperBound)
Sets the upper bound of this bounding box to the given value.
|
void |
translate(Vector2d translator)
Translates this bounding box by the given vector.
|
contains, contains, getArea, getCentroid, getEdges, getLowerBound, getSizeX, getSizeY, getUpperBound, getVertices, intersects, isDegenerate
static MAABB2d create(AABB2d boundingBox)
static MAABB2d create(Collection<Vector2d> points)
static MAABB2d create(Vector2d lowerBound, Vector2d upperBound)
void extend(Vector2d point)
point
- the point that this box is extended to includevoid extend(Collection<Vector2d> points)
points
- the points that this box is extended to includevoid resize(double resizeValue)
resizeValue
- the value by which this bounding box is resizedvoid set(Vector2d lowerBound, Vector2d upperBound)
lowerBound
- the lower bound that is set to this boxupperBound
- the upper bound that is set to this boxvoid setUpperBound(Vector2d upperBound)
upperBound
- the upper bound that is set to this bounding boxvoid setLowerBound(Vector2d lowerBound)
lowerBound
- the lower bound that is set to this bounding boxvoid translate(Vector2d translator)
translator
- the vector by which this bounding box is translatedCopyright © 2019 Solibri, Inc.. All rights reserved.