Example usage for Java com.badlogic.gdx.math.collision BoundingBox fields, constructors, methods, implement or subclass
The text is from its open source code.
BoundingBox() Constructs a new bounding box with the minimum and maximum vector set to zeros. | |
BoundingBox(BoundingBox bounds) Constructs a new bounding box from the given bounding box. | |
BoundingBox(Vector3 minimum, Vector3 maximum) Constructs the new bounding box using the given minimum and maximum vector. |
BoundingBox | ext(Vector3 point) Extends the bounding box to incorporate the given Vector3 . |
BoundingBox | ext(BoundingBox a_bounds) Extends this bounding box by the given bounding box. |
BoundingBox | ext(float x, float y, float z) Extends the bounding box by the given vector. |
Vector3 | getCenter() |
Vector3 | getCenter(Vector3 out) |
float | getCenterX() |
float | getCenterY() |
float | getDepth() |
Vector3 | getDimensions() |
Vector3 | getDimensions(final Vector3 out) |
float | getHeight() |
float | getWidth() |
BoundingBox | inf() Sets the minimum and maximum vector to positive and negative infinity. |
boolean | intersects(BoundingBox b) Returns whether the given bounding box is intersecting this bounding box (at least one point in). |
BoundingBox | mul(Matrix4 transform) Multiplies the bounding box by the given matrix. |
BoundingBox | set(Vector3 minimum, Vector3 maximum) Sets the given minimum and maximum vector. |
String | toString() |