Clones this instance and returns a new AABox with identical values.
Transforms the bounding box by the given matrix.
As the resulting box will no longer be axis aligned, an axis align box is instead created by encompassing the transformed oriented bounding box. Retrieving the value as an actual OBB would provide a tighter fit.
Returns the center of the box.
Returns the width, height and depth of the box.
Determines if this instance is zero.
Returns a string representation of an object.
Transforms the bounding box by the given matrix.
As the resulting box will no longer be axis aligned, an axis align box is instead created by encompassing the transformed oriented bounding box. Retrieving the value as an actual OBB would provide a tighter fit.
Staticis
The AABox implements an axis-aligned box represented by minimum and maximum point The class follows the 'copy-on-write' pattern, which means that every operation returns a copy of the AABox with updates values. It also implies that the values of the AABox cannot be directly modified.
The concept of immutability improves sharing of objects as all types in TypeScript are assigned by identity, instead of by-value (e.g. a copy) as in other programming languages like C.