| Modifier and Type | Field and Description |
|---|---|
| private final Vector3[] | |
| private final BoundingBox | bounds
Bounds used as size. |
| private final Matrix4 | |
| private static final long | |
| private static final Vector3[] | |
| private static final Vector3[] | |
| private static final Vector3[] | |
| public final Matrix4 | transform
Transform matrix. |
| private final Vector3[] |
| Access | Constructor and Description |
|---|---|
| public | OrientedBoundingBox()
Constructs a new oriented bounding box with the minimum and maximum vector set to zeros. |
| public | OrientedBoundingBox(BoundingBox
The bounding box to copy bounds)Constructs a new oriented bounding box from the given bounding box. |
| public | OrientedBoundingBox(BoundingBox
The bounding box to copy bounds, Matrix4 The transformation matrix to copy transform)Constructs a new oriented bounding box from the given bounding box and transform. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| private boolean | |
| public boolean | Returns: Whether the given bounding box is containedThe bounding box b)Returns whether the given bounding box is contained in this oriented bounding box. |
| public boolean | Returns: Whether the given oriented bounding box is containedThe oriented bounding box obb)Returns whether the given oriented bounding box is contained in this oriented bounding box. |
| public BoundingBox | |
| public Vector3 | |
| public Vector3 | |
| public Vector3 | |
| public Vector3 | |
| public Vector3 | |
| public Vector3 | |
| public Vector3 | |
| public Vector3 | |
| public Matrix4 | |
| public Vector3[] | |
| private Vector3[] | |
| private void | |
| public boolean | Returns: Whether the given bounding box is intersectedThe bounding box b)Returns whether the given bounding box is intersecting this oriented bounding box (at least one point in). |
| public boolean | Returns: Whether the given bounding box is intersectedThe oriented bounding box obb)Returns whether the given oriented bounding box is intersecting this oriented bounding box (at least one point in). |
| public void | |
| public OrientedBoundingBox | |
| public void | setBounds(BoundingBox
The bounding box to copy bounds)Sets the base bounds of the oriented bounding box as the bounds given, the transform is applied to the vertices. |
| public void | |
| private void |
| axes | back to summary |
|---|---|
| private final Vector3[] axes | |
| bounds | back to summary |
|---|---|
| private final BoundingBox bounds Bounds used as size. | |
| inverseTransform | back to summary |
|---|---|
| private final Matrix4 inverseTransform | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| tempAxes | back to summary |
|---|---|
| private static final Vector3[] tempAxes | |
| tempVertices | back to summary |
|---|---|
| private static final Vector3[] tempVertices | |
| tmpVectors | back to summary |
|---|---|
| private static final Vector3[] tmpVectors | |
| transform | back to summary |
|---|---|
| public final Matrix4 transform Transform matrix. | |
| vertices | back to summary |
|---|---|
| private final Vector3[] vertices | |
| OrientedBoundingBox | back to summary |
|---|---|
| public OrientedBoundingBox() Constructs a new oriented bounding box with the minimum and maximum vector set to zeros. | |
| OrientedBoundingBox | back to summary |
|---|---|
| public OrientedBoundingBox(BoundingBox bounds) Constructs a new oriented bounding box from the given bounding box.
| |
| OrientedBoundingBox | back to summary |
|---|---|
| public OrientedBoundingBox(BoundingBox bounds, Matrix4 transform) Constructs a new oriented bounding box from the given bounding box and transform.
| |
| contains | back to summary |
|---|---|
| public boolean contains(Vector3 v) Returns whether the given vector is contained in this oriented bounding box.
| |
| contains | back to summary |
|---|---|
| private boolean contains(Vector3 v, Matrix4 invTransform) | |
| contains | back to summary |
|---|---|
| public boolean contains(BoundingBox b) Returns whether the given bounding box is contained in this oriented 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.
| |
| getBounds | back to summary |
|---|---|
| public BoundingBox getBounds() Get the current bounds. Call | |
| 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) | |
| getTransform | back to summary |
|---|---|
| public Matrix4 getTransform() Get the current transformation matrix. Call | |
| getVertices | back to summary |
|---|---|
| public Vector3[] getVertices() | |
| getVertices | back to summary |
|---|---|
| private Vector3[] getVertices(BoundingBox b) | |
| init | back to summary |
|---|---|
| private void init() | |
| intersects | back to summary |
|---|---|
| public boolean intersects(BoundingBox b) Returns whether the given bounding box is intersecting this oriented bounding box (at least one point in).
| |
| intersects | back to summary |
|---|---|
| public boolean intersects(OrientedBoundingBox obb) Returns whether the given oriented bounding box is intersecting this oriented bounding box (at least one point in).
| |
| mul | back to summary |
|---|---|
| public void mul(Matrix4 transform) | |
| set | back to summary |
|---|---|
| public OrientedBoundingBox set(BoundingBox bounds, Matrix4 transform) | |
| setBounds | back to summary |
|---|---|
| public void setBounds(BoundingBox bounds) Sets the base bounds of the oriented bounding box as the bounds given, the transform is applied to the vertices.
| |
| setTransform | back to summary |
|---|---|
| public void setTransform(Matrix4 transform) | |
| update | back to summary |
|---|---|
| private void update() | |