Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AABB

A 3D axis-aligned bounding box.

Hierarchy

  • AABB

Index

Constructors

Properties

__centerPoint: MutableVector3 = ...
__isCenterPointDirty: boolean = false
__isLengthCenterToCornerDirty: boolean = false
__isVanilla: boolean = true
__lengthCenterToCorner: number = 0
__max: MutableVector3 = ...
__min: MutableVector3 = ...
__tmpVector3: MutableVector3 = ...

Accessors

  • get lengthCenterToCorner(): number
  • get sizeX(): number
  • get sizeY(): number
  • get sizeZ(): number

Methods

  • addPositionWithArray(array: number[], index: number): number[]
  • add a position for updating AABB.

    Parameters

    • array: number[]

      a position array.

    • index: number

      index of the position array to adding.

    Returns number[]

    given array.

  • initialize(): void
  • isVanilla(): boolean
  • return whether this AABB is vanilla (not initialized) or not.

    Returns boolean

    true if this AABB is vanilla.

  • mergeAABB(aabb: AABB): boolean
  • toString(): string
  • toStringApproximately(): string
  • multiply this AABB with a given matrix.

    Parameters

    • matrix: Matrix44

      a matrix to convert aabb.

    • aabb: AABB

      given AABB to convert.

    • outAabb: AABB

      converted AABB by given matrix.

    Returns AABB

    converted AABB.

Generated using TypeDoc