AABB Class
Axis aligned bounding box class.
Constructor
AABB
(
-
[options]
Parameters:
-
[options]Object optional-
[upperBound]Array optional -
[lowerBound]Array optional
-
Methods
overlaps
(
Boolean
-
aabb
Returns true if the given AABB overlaps this AABB.
Parameters:
-
aabbAABB
Returns:
Boolean:
setFromPoints
(
-
points
Set the AABB bounds from a set of points.
Parameters:
-
pointsArrayAn array of vec2's.
Properties
lowerBound
Array
The lower bound of the bounding box.
upperBound
Array
The upper bound of the bounding box.
