| Property | Defined by | ||
|---|---|---|---|
| lowerBound : b2Vec2
The lower vertex
| b2AABB | ||
| upperBound : b2Vec2
The upper vertex
| b2AABB | ||
| Method | Defined by | ||
|---|---|---|---|
|
[static] Combine two AABBs into one.
| b2AABB | ||
|
Is an AABB contained within this one.
| b2AABB | ||
|
Get the center of the AABB.
| b2AABB | ||
|
Get the extents of the AABB (half-widths).
| b2AABB | ||
|
IsValid():Boolean
Verify that the bounds are sorted.
| b2AABB | ||
|
Perform a precise raycast against the AABB.
| b2AABB | ||
|
TestOverlap(other:b2AABB):Boolean
Tests if another AABB overlaps this one.
| b2AABB | ||
| lowerBound | property |
public var lowerBound:b2Vec2The lower vertex
| upperBound | property |
public var upperBound:b2Vec2The upper vertex
| Combine | () | method |
public static function Combine(aabb1:b2AABB, aabb2:b2AABB):b2AABBCombine two AABBs into one.
Parametersaabb1:b2AABB |
|
aabb2:b2AABB |
b2AABB |
| Contains | () | method |
public function Contains(aabb:b2AABB):BooleanIs an AABB contained within this one.
Parametersaabb:b2AABB |
Boolean |
| GetCenter | () | method |
| GetExtents | () | method |
| IsValid | () | method |
public function IsValid():BooleanVerify that the bounds are sorted.
ReturnsBoolean |
| RayCast | () | method |
public function RayCast(output:b2RayCastOutput, input:b2RayCastInput):BooleanPerform a precise raycast against the AABB.
Parametersoutput:b2RayCastOutput |
|
input:b2RayCastInput |
Boolean |
| TestOverlap | () | method |
public function TestOverlap(other:b2AABB):BooleanTests if another AABB overlaps this one.
Parametersother:b2AABB |
Boolean |