Constructor
new BoundingBox(minXopt, minYopt, maxXopt, maxYopt)
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
minX |
number |
<optional> |
0
|
|
minY |
number |
<optional> |
0
|
|
maxX |
number |
<optional> |
0
|
|
maxY |
number |
<optional> |
0
|
Classes
Members
max :Vector_like
- Description:
- The upper limit of the bounding box
- Source:
The upper limit of the bounding box
Type:
min :Vector_like
- Description:
- The lower limit of the bounding box
- Source:
The lower limit of the bounding box
Type:
Methods
clone() → {BoundingBox}
- Description:
- Deep copies a bounding box to a new one.
- Source:
- Deprecated:
- Yes
Returns:
- Type
- BoundingBox
copy(bounds)
- Description:
- Deep copies another bounding box.
- Source:
- Deprecated:
- Yes
Parameters:
Name | Type | Description |
---|---|---|
bounds |
BoundingBox |
intersects(bound)
- Description:
- Checks to see if this intersects with another bounding box
- Source:
Parameters:
Name | Type | Description |
---|---|---|
bound |
BoundingCircle | BoundingBox | the bound to check intersection with |
Returns:
boolean
translate(x, y)
- Source:
- Deprecated:
- Yes
Parameters:
Name | Type | Description |
---|---|---|
x |
number | |
y |
number |
(static) copy(bound)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
bound |
BoundingBox |
(static) translate(bound, x, y)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
bound |
BoundingBox | |
x |
number | |
y |
number |
(static) union(bound1, bound2, out)
- Description:
- Combines two bounds to create a new one that covers the previous two.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
bound1 |
BoundingBox | |
bound2 |
BoundingBox | |
out |
BoundingBox | Bound to store results into. |
Returns:
BoundingBox