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:
-
aabb
AABB
Returns:
Boolean:
copy
(
AABB
-
aabb
Copy bounds from an AABB to this AABB
Parameters:
-
aabb
AABBSource to copy from
Returns:
AABB:
The this object, for chainability
overlaps
(
Boolean
-
aabb
Returns true if the given AABB overlaps this AABB.
Parameters:
-
aabb
AABB
Returns:
Boolean:
setFromPoints
(
AABB
-
points
-
position
-
quaternion
-
skinSize
Set the AABB bounds from a set of points.
Parameters:
-
points
ArrayAn array of Vec3's.
-
position
Vec3 -
quaternion
Quaternion -
skinSize
Number
Returns:
AABB:
The self object