BoundingBox2D
内容
[
隐藏
]Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.threed.Struct, java.io.Serializable
public final class BoundingBox2D implements Struct<BoundingBox2D>, Serializable
针对 Vector2 的轴对齐包围盒
构造函数
| 构造函数 | 描述 |
|---|---|
| BoundingBox2D(Vector2 minimum, Vector2 maximum) | 使用给定的最小角和最大角初始化有限的包围盒 |
| BoundingBox2D() |
字段
| 字段 | 描述 |
|---|---|
| INFINITE | 无限包围盒 |
| NULL | 空包围盒 |
方法
| 方法 | 描述 |
|---|---|
| clone() | |
| copyFrom(BoundingBox2D src) | |
| equals(Object obj) | |
| getClass() | |
| getExtent() | 获取包围盒的范围。 |
| getMaximum() | 包围盒的最大角 |
| getMinimum() | 包围盒的最小角 |
| hashCode() | |
| merge(BoundingBox2D bb) | 将新盒合并到当前包围盒中。 |
| merge(Vector2 pt) | 将新盒合并到当前包围盒中。 |
| notify() | |
| notifyAll() | |
| toString() | 获取包围盒的字符串表示形式。 |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
BoundingBox2D(Vector2 minimum, Vector2 maximum)
public BoundingBox2D(Vector2 minimum, Vector2 maximum)
使用给定的最小角和最大角初始化有限的包围盒
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| minimum | Vector2 | 最小角 |
| maximum | Vector2 | 最大角 |
BoundingBox2D()
public BoundingBox2D()
INFINITE
public static final BoundingBox2D INFINITE
无限包围盒
NULL
public static final BoundingBox2D NULL
空包围盒
clone()
public BoundingBox2D clone()
克隆当前实例
Returns: BoundingBox2D
copyFrom(BoundingBox2D src)
public void copyFrom(BoundingBox2D src)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| src | BoundingBox2D |
equals(Object obj)
public boolean equals(Object obj)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| obj | java.lang.Object |
Returns: 布尔
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getExtent()
public BoundingBoxExtent getExtent()
获取包围盒的范围。
Returns: BoundingBoxExtent - the extent of the bounding box.
getMaximum()
public Vector2 getMaximum()
包围盒的最大角
Returns: Vector2 - The maximum corner of the bounding box
getMinimum()
public Vector2 getMinimum()
包围盒的最小角
Returns: Vector2 - The minimum corner of the bounding box
hashCode()
public int hashCode()
Returns: int
merge(BoundingBox2D bb)
public void merge(BoundingBox2D bb)
将新盒合并到当前包围盒中。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| bb | BoundingBox2D | 要合并的包围盒 |
merge(Vector2 pt)
public void merge(Vector2 pt)
将新盒合并到当前包围盒中。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| pt | Vector2 | 要合并的点 |
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
获取包围盒的字符串表示形式。
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long | |
| arg1 | int |