BoundingBox
Contents
[
Hide
]BoundingBox class
The axis-aligned bounding box
Properties
| Name | Description |
|---|---|
| NULL | The null bounding box |
| INFINITE | The infinite bounding box |
Methods
constructor
| Name | Description |
|---|---|
| constructor() |
Result:
constructor_overload
| Name | Description |
|---|---|
| constructor_overload(minimum, maximum) | Initialize a finite bounding box with given minimum and maximum corner |
Parameters:
| Name | Type | Description |
|---|---|---|
| minimum | Vector3 | The minimum corner |
| maximum | Vector3 | The maximum corner |
Result:
constructor_overload2
| Name | Description |
|---|---|
| constructor_overload2(minX, minY, minZ, maxX, maxY, maxZ) | Initialize a finite bounding box with given minimum and maximum corner |
Result:
getExtent
| Name | Description |
|---|---|
| getExtent() | Gets the extent of the bounding box. The value of the property is BoundingBoxExtent integer constant. |
Result:
getMinimum
| Name | Description |
|---|---|
| getMinimum() | The minimum corner of the bounding box |
Result:
getMaximum
| Name | Description |
|---|---|
| getMaximum() | The maximum corner of the bounding box |
Result:
getSize
| Name | Description |
|---|---|
| getSize() | The size of the bounding box |
Result:
getCenter
| Name | Description |
|---|---|
| getCenter() | The center of the bounding box. |
Result:
fromGeometry
| Name | Description |
|---|---|
| fromGeometry(geometry) | Construct a bounding box from given geometry |
Parameters:
| Name | Type | Description |
|---|---|---|
| geometr | Geometry | null |
Result: BoundingBox
toString
| Name | Description |
|---|---|
| toString() | Gets the string representation of the bounding box. |
Result: String
hashCode
| Name | Description |
|---|---|
| hashCode() | Returns the hash code for this instance |
Result: Number
equals
| Name | Description |
|---|---|
| equals(obj) | Determines if two objects are equal |
Parameters:
| Name | Type | Description |
|---|---|---|
| ob | Object | null |
Result: boolean