The maximum point defining the bounding box.
The minimum point defining the bounding box.
addBox
input.
addPt
input.
Duplicates this AxisAlignedBoundingBox instance.
The modified result parameter or a new AxisAlignedBoundingBox instance if one was not provided.
Compares this AxisAlignedBoundingBox against the provided AxisAlignedBoundingBox componentwise and returns
true
if they are equal, false
otherwise.
true
if they are equal, false
otherwise.
get corner ary.
corner ary
getLength
len
Compares this AxisAlignedBoundingBox against the provided AxisAlignedBoundingBox componentwise and returns
Determines which side of a plane this box is located.
The plane to test against.
{@link Intersect.INSIDE} if the entire box is on the side of the plane the normal is pointing, {@link Intersect.OUTSIDE} if the entire box is on the opposite side, and {@link Intersect.INTERSECTING} if the box intersects the plane.
isOverlap
input.
isOverlap
transformBy
input.
self.
Duplicates a AxisAlignedBoundingBox instance.
The bounding box to duplicate.
The modified result parameter or a new AxisAlignedBoundingBox instance if none was provided. (Returns undefined if box is undefined)
Compares the provided AxisAlignedBoundingBox componentwise and returns
true
if they are equal, false
otherwise.
true
if left and right are equal, false
otherwise.
Computes an instance of an AxisAlignedBoundingBox. The box is determined by finding the points spaced the farthest apart on the x, y, and z axes.
List of points that the bounding box will enclose. Each point must have a x
, y
, and z
properties.
The modified result parameter or a new AxisAlignedBoundingBox instance if one was not provided.
Determines which side of a plane a box is located.
The bounding box to test.
The plane to test against.
{@link Intersect.INSIDE} if the entire box is on the side of the plane the normal is pointing, {@link Intersect.OUTSIDE} if the entire box is on the opposite side, and {@link Intersect.INTERSECTING} if the box intersects the plane.
The center point of the bounding box.