PackageBox2DAS.Collision
Classpublic class AABB
InheritanceAABB Inheritance Object



Public Properties
 PropertyDefined By
  lowerBound : V2
AABB
  upperBound : V2
AABB
Public Methods
 MethodDefined By
  
AABB(l:V2 = null, u:V2 = null)
AABB
  
Combine(aabb1:AABB, aabb2:AABB):void
AABB
  
Contains(aabb:AABB):Boolean
AABB
  
FromV2(v:V2, expandX:Number = 0.001, expandY:Number = 0.001):AABB
[static]
AABB
  
AABB
  
AABB
  
Intersects(other:AABB):Boolean
AABB
  
IsValid():Boolean
AABB
Property Detail
lowerBoundproperty
public var lowerBound:V2

upperBoundproperty 
public var upperBound:V2

Constructor Detail
AABB()Constructor
public function AABB(l:V2 = null, u:V2 = null)



Parameters
l:V2 (default = null)
 
u:V2 (default = null)
Method Detail
Combine()method
public function Combine(aabb1:AABB, aabb2:AABB):void

Parameters

aabb1:AABB
 
aabb2:AABB

Contains()method 
public function Contains(aabb:AABB):Boolean

Parameters

aabb:AABB

Returns
Boolean
FromV2()method 
public static function FromV2(v:V2, expandX:Number = 0.001, expandY:Number = 0.001):AABB

Parameters

v:V2
 
expandX:Number (default = 0.001)
 
expandY:Number (default = 0.001)

Returns
AABB
getCenter()method 
public function getCenter():V2

Returns
V2
GetExtents()method 
public function GetExtents():V2

Returns
V2
Intersects()method 
public function Intersects(other:AABB):Boolean

Parameters

other:AABB

Returns
Boolean
IsValid()method 
public function IsValid():Boolean

Returns
Boolean