Expands the bounding box so it includes the provided point.
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.
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.