Class: AABB2
new AABB2(Vec2, Vec2)
Parameters:
| Name |
Type |
Description |
Vec2 |
|
min |
Vec2 |
|
max |
- Source:
Members
-
<static> this.max
-
Properties:
| Name |
Type |
Description |
Vec2 |
|
max |
- Source:
-
<static> this.min
-
Properties:
| Name |
Type |
Description |
Vec2 |
|
min |
- Source:
Methods
-
<static> clear()
-
- Source:
Returns:
this
-
<static> clone()
-
- Source:
Returns:
AABB2
-
<static> contains(Vec2)
-
Parameters:
| Name |
Type |
Description |
Vec2 |
|
point |
- Source:
Returns:
Boolean
-
<static> copy(AABB2)
-
Parameters:
| Name |
Type |
Description |
AABB2 |
|
other |
- Source:
Returns:
this
-
<static> expandPoint(Vec2)
-
Parameters:
| Name |
Type |
Description |
Vec2 |
|
v |
- Source:
Returns:
this
-
<static> expandScalar(Number)
-
Parameters:
| Name |
Type |
Description |
Number |
|
s |
- Source:
Returns:
this
-
<static> expandVec(Vec2)
-
Parameters:
| Name |
Type |
Description |
Vec2 |
|
v |
- Source:
Returns:
this
-
<static> fromCenterSize(Vec2, Vec2)
-
Parameters:
| Name |
Type |
Description |
Vec2 |
|
center |
Vec2 |
|
size |
- Source:
Returns:
this
-
<static> fromJSON(Object)
-
Parameters:
| Name |
Type |
Description |
Object |
|
json |
- Source:
Returns:
this
-
<static> fromPoints(Array)
-
Parameters:
| Name |
Type |
Description |
Array |
|
points |
- Source:
Returns:
this
-
<static> intersects(AABB2)
-
Parameters:
| Name |
Type |
Description |
AABB2 |
|
other |
- Source:
Returns:
Boolean
-
<static> set(Vec2, Vec2)
-
Parameters:
| Name |
Type |
Description |
Vec2 |
|
min |
Vec2 |
|
max |
- Source:
Returns:
this
-
<static> toJSON()
-
- Source:
Returns:
Object
-
<static> toString()
-
- Source:
Returns:
String
-
<static> union(AABB2)
-
Parameters:
| Name |
Type |
Description |
AABB2 |
|
aabb |
- Source:
Returns:
this