RSX Code Reference
    Preparing search index...

    Class AABox

    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.

    Index
    _maximum: Vector3
    _minimum: Vector3
    • Copies all properties defined by the prototype of AABox from other to this instance.

      Parameters

      Returns AABox

    • Clones this instance and returns a new AABox with identical values.

      Returns AABox

    • 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.

      Parameters

      Returns void

    • Returns the width, height and depth of the box.

      Returns Vector3

    • Determines if both AABBs contain the same values.

      Parameters

      Returns boolean

    • Determines if this instance is zero.

      Returns boolean

    • Returns a string representation of an object.

      Returns string

    • 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.

      Parameters

      Returns AABox