public class BoundingBox extends Object
| 构造器 | 说明 |
|---|---|
BoundingBox() |
Default constructor used to create a
BoundingBox instance
with both the minimum and maximum corner values being zero. |
BoundingBox(Vector3 minCorner,
Vector3 maxCorner) |
A constructor used to create a
BoundingBox instance with the maximum
and minimum corner values of the axis-aligned bounding box (AABB). |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Vector3 |
getAabbMax() |
Obtains the maximum corner value of the AABB.
|
Vector3 |
getAabbMin() |
Obtains the minimum corner value of the AABB.
|
void |
setAabbMinMax(Vector3 min,
Vector3 max) |
Sets the minimum and maximum corner values of the AABB.
|
public BoundingBox(Vector3 minCorner, Vector3 maxCorner)
BoundingBox instance with the maximum
and minimum corner values of the axis-aligned bounding box (AABB).minCorner - Indicates the minimum corner value of the AABB.maxCorner - Indicates the maximum corner value of the AABB.public BoundingBox()
BoundingBox instance
with both the minimum and maximum corner values being zero.public void setAabbMinMax(Vector3 min, Vector3 max)
min - Indicates the minimum corner value.max - Indicates the maximum corner value.public Vector3 getAabbMin()
public Vector3 getAabbMax()