Create a new BoundingBox instance. The bounding box is axis-aligned.
Combines two bounding boxes into one, enclosing both.
Bounding box to add.
Returns a clone of the AABB.
A duplicate AABB.
Compute the size of the AABB to encapsulate all specified vertices.
The vertices used to compute the new size for the AABB.
Optional
numVerts: numberNumber of vertices to use from the beginning of vertices array. All vertices are used if not specified.
Test if a point is inside a AABB.
Point to test.
True if the point is inside the AABB and false otherwise.
Copies the contents of a source AABB.
The AABB to copy from.
Test whether two axis-aligned bounding boxes intersect.
Bounding box to test against.
True if there is an intersection.
Test if a Bounding Sphere is overlapping, enveloping, or inside this AABB.
Bounding Sphere to test.
True if the Bounding Sphere is overlapping, enveloping, or inside the AABB and false otherwise.
Set an AABB to enclose the specified AABB if it were to be transformed by the specified 4x4 matrix.
Box to transform and enclose.
Transformation matrix to apply to source AABB.
If true is specified, a scale from the matrix is ignored. Defaults to false.
Static
computeCompute the min and max bounding values to encapsulate all specified vertices.
The vertices used to compute the new size for the AABB.
Stored computed min value.
Stored computed max value.
Optional
numVerts: number = ...Number of vertices to use from the beginning of vertices array. All vertices are used if not specified.
Axis-Aligned Bounding Box.