Default constructed AABB with no enclosed volume.
value = AABB()
Is the point contained within the bounds.
Extend this AABB to also enclose the given AABB.
Extend this AABB to enclose the given point.
Get the center of the bounding box.
Get the depth (z dimension) of the bounding box.
Get the extents (w/2,h/2,d/2) of the bounding box.
Get the height (y dimension) of the bounding box.
Get the maximum coordinate of the bounding box.
Get the minimum coordinate of the bounding box.
Get the width (x dimension) of the bounding box.
Intersect AABB with a ray. The AABB is assumed to be a solid block; if the ray origin is inside the AABB it will be considered a hit with a distance of 0.
Start point of the ray.
Direction of the ray. The ray is assumed to be infinite in length.
Distance to the intersection. To get the intersection point, use rayOri + rayDir * dist.
Get whether the AABB is EMPTY.
An EMPTY AABB is un-initialized and contains no valid data, but is ready for extending.
Get whether the AABB is valid.
An invalid AABB is where any component in max is less than the same component in min.
EMPTY is an invalid AABB.
Get whether the AABB is of zero size.
An AABB with zero size is where min and max are at the same point.
Get whether the AABB is of zero volume.
An AABB with zero volume is where any component in min equals the same component in max.
Set the maximum coordinate of the bounding box
Set the minimum coordinate of the bounding box
Return a readable string representation of the given AABB object.
Transform the AABB. The resulting AABB will be the minimal AABB enclosing the original AABB with the provided transform applied.
Translate this AABB by the given offset.
Generated using TypeDoc
Axis-aligned bounding box.