AABB Class
Axis aligned bounding box class.
Constructor
Item Index
Properties
Methods
clone
()
Clone an AABB
contains
(
Boolean
-
aabb
Returns true if the given AABB is fully contained in this AABB.
Parameters:
-
aabbAABB
Returns:
Boolean:
copy
(
AABB
-
aabb
Copy bounds from an AABB to this AABB
Parameters:
-
aabbAABBSource to copy from
Returns:
AABB:
The this object, for chainability
overlaps
(
Boolean
-
aabb
Returns true if the given AABB overlaps this AABB.
Parameters:
-
aabbAABB
Returns:
Boolean:
setFromPoints
(
AABB
-
points -
position -
quaternion -
skinSize
Set the AABB bounds from a set of points.
Parameters:
-
pointsArrayAn array of Vec3's.
-
positionVec3 -
quaternionQuaternion -
skinSizeNumber
Returns:
AABB:
The self object
