| Modifier and Type | Field and Description |
|---|---|
| private final Vector3 | |
| private final Vector3 | |
| public final Vector3 | max
Maximum vector. |
| public final Vector3 | min
Minimum vector. |
| private static final long | |
| private static final Vector3 |
| Access | Constructor and Description |
|---|---|
| public | |
| public | BoundingBox(BoundingBox
The bounding box to copy bounds)Constructs a new bounding box from the given bounding box. |
| public | BoundingBox(Vector3
The minimum vector minimum, Vector3 The maximum vector maximum)Constructs the new bounding box using the given minimum and maximum vector. |
| Modifier and Type | Method and Description |
|---|---|
| public BoundingBox | |
| public boolean | Returns: Whether the given bounding box is containedThe bounding box b)Returns whether the given bounding box is contained in this bounding box. |
| public boolean | Returns: Whether the given oriented bounding box is containedThe bounding box obb)Returns whether the given oriented bounding box is contained in this oriented bounding box. |
| public boolean | |
| public BoundingBox | |
| public BoundingBox | Returns: This bounding box for chaining.The bounding box a_bounds)Extends this bounding box by the given bounding box. |
| public BoundingBox | |
| public BoundingBox | Returns: This bounding box for chaining.The bounding box bounds, Matrix4 The transformation matrix to apply to bounds, before using it to extend this bounding box. transform)Extends this bounding box by the given transformed bounding box. |
| public BoundingBox | Returns: This bounding box for chaining.The x-coordinate x, float The y-coordinate y, float The z-coordinate z)Extends the bounding box by the given vector. |
| public Vector3 | |
| public float | |
| public float | |
| public float | |
| public Vector3 | |
| public Vector3 | |
| public Vector3 | |
| public Vector3 | |
| public Vector3 | |
| public Vector3 | |
| public Vector3 | |
| public Vector3 | |
| public float | |
| public Vector3 | getDimensions(final Vector3
The out)Vector3 to receive the dimensions of this bounding box on all three axis.Returns: The vector specified with the out argument |
| public float | |
| public Vector3 | |
| public Vector3 | |
| public float | |
| public BoundingBox | Returns: This bounding box for chaining.Sets the minimum and maximum vector to positive and negative infinity. |
| public boolean | Returns: Whether the given bounding box is intersectedThe bounding box b)Returns whether the given bounding box is intersecting this bounding box (at least one point in). |
| public boolean | Returns: True in case the bounding box is valid, false otherwiseReturns whether this bounding box is valid. |
| pack-priv static final float | |
| pack-priv static final float | |
| public BoundingBox | |
| public BoundingBox | Returns: This bounding box for chaining.The bounds. bounds)Sets the given bounding box. |
| public BoundingBox | |
| public BoundingBox | |
| public BoundingBox | |
| public String | |
| public void |
| cnt | back to summary |
|---|---|
| private final Vector3 cnt | |
| dim | back to summary |
|---|---|
| private final Vector3 dim | |
| max | back to summary |
|---|---|
| public final Vector3 max Maximum vector. All XYZ components should be superior to corresponding | |
| min | back to summary |
|---|---|
| public final Vector3 min Minimum vector. All XYZ components should be inferior to corresponding | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| tmpVector | back to summary |
|---|---|
| private static final Vector3 tmpVector | |
| BoundingBox | back to summary |
|---|---|
| public BoundingBox() Constructs a new bounding box with the minimum and maximum vector set to zeros. | |
| BoundingBox | back to summary |
|---|---|
| public BoundingBox(BoundingBox bounds) Constructs a new bounding box from the given bounding box.
| |
| BoundingBox | back to summary |
|---|---|
| public BoundingBox(Vector3 minimum, Vector3 maximum) Constructs the new bounding box using the given minimum and maximum vector. | |
| clr | back to summary |
|---|---|
| public BoundingBox clr() Sets the minimum and maximum vector to zeros.
| |
| contains | back to summary |
|---|---|
| public boolean contains(BoundingBox b) Returns whether the given bounding box is contained in this bounding box.
| |
| contains | back to summary |
|---|---|
| public boolean contains(OrientedBoundingBox obb) Returns whether the given oriented bounding box is contained in this oriented bounding box.
| |
| contains | back to summary |
|---|---|
| public boolean contains(Vector3 v) Returns whether the given vector is contained in this bounding box.
| |
| ext | back to summary |
|---|---|
| public BoundingBox ext(Vector3 point) Extends the bounding box to incorporate the given
| |
| ext | back to summary |
|---|---|
| public BoundingBox ext(BoundingBox a_bounds) Extends this bounding box by the given bounding box.
| |
| ext | back to summary |
|---|---|
| public BoundingBox ext(Vector3 center, float radius) Extends this bounding box by the given sphere.
| |
| ext | back to summary |
|---|---|
| public BoundingBox ext(BoundingBox bounds, Matrix4 transform) Extends this bounding box by the given transformed bounding box.
| |
| ext | back to summary |
|---|---|
| public BoundingBox ext(float x, float y, float z) Extends the bounding box by the given vector.
| |
| getCenter | back to summary |
|---|---|
| public Vector3 getCenter(Vector3 out) | |
| getCenterX | back to summary |
|---|---|
| public float getCenterX() | |
| getCenterY | back to summary |
|---|---|
| public float getCenterY() | |
| getCenterZ | back to summary |
|---|---|
| public float getCenterZ() | |
| getCorner000 | back to summary |
|---|---|
| public Vector3 getCorner000(final Vector3 out) | |
| getCorner001 | back to summary |
|---|---|
| public Vector3 getCorner001(final Vector3 out) | |
| getCorner010 | back to summary |
|---|---|
| public Vector3 getCorner010(final Vector3 out) | |
| getCorner011 | back to summary |
|---|---|
| public Vector3 getCorner011(final Vector3 out) | |
| getCorner100 | back to summary |
|---|---|
| public Vector3 getCorner100(final Vector3 out) | |
| getCorner101 | back to summary |
|---|---|
| public Vector3 getCorner101(final Vector3 out) | |
| getCorner110 | back to summary |
|---|---|
| public Vector3 getCorner110(final Vector3 out) | |
| getCorner111 | back to summary |
|---|---|
| public Vector3 getCorner111(final Vector3 out) | |
| getDepth | back to summary |
|---|---|
| public float getDepth() | |
| getDimensions | back to summary |
|---|---|
| public Vector3 getDimensions(final Vector3 out) | |
| getHeight | back to summary |
|---|---|
| public float getHeight() | |
| getMax | back to summary |
|---|---|
| public Vector3 getMax(final Vector3 out) | |
| getMin | back to summary |
|---|---|
| public Vector3 getMin(final Vector3 out) | |
| getWidth | back to summary |
|---|---|
| public float getWidth() | |
| inf | back to summary |
|---|---|
| public BoundingBox inf() Sets the minimum and maximum vector to positive and negative infinity.
| |
| intersects | back to summary |
|---|---|
| public boolean intersects(BoundingBox b) Returns whether the given bounding box is intersecting this bounding box (at least one point in).
| |
| isValid | back to summary |
|---|---|
| public boolean isValid() Returns whether this bounding box is valid. This means that
| |
| max | back to summary |
|---|---|
| pack-priv static final float max(final float a, final float b) | |
| min | back to summary |
|---|---|
| pack-priv static final float min(final float a, final float b) | |
| mul | back to summary |
|---|---|
| public BoundingBox mul(Matrix4 transform) Multiplies the bounding box by the given matrix. This is achieved by multiplying the 8 corner points and then calculating the minimum and maximum vectors from the transformed points.
| |
| set | back to summary |
|---|---|
| public BoundingBox set(BoundingBox bounds) Sets the given bounding box.
| |
| set | back to summary |
|---|---|
| public BoundingBox set(Vector3 minimum, Vector3 maximum) Sets the given minimum and maximum vector.
| |
| set | back to summary |
|---|---|
| public BoundingBox set(Vector3[] points) Sets the bounding box minimum and maximum vector from the given points.
| |
| set | back to summary |
|---|---|
| public BoundingBox set(List<Vector3> points) Sets the bounding box minimum and maximum vector from the given points.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| update | back to summary |
|---|---|
| public void update() Should be called if you modify | |