Represents a bounding box in 3D space.

Hierarchy

  • BoundingBox3D

Constructors

Properties

lower: Vector3D
upper: Vector3D

Accessors

  • get length(): number
  • Returns number

  • get maxX(): number
  • Returns number

  • get maxY(): number
  • Returns number

  • get maxZ(): number
  • Returns number

  • get minX(): number
  • Returns number

  • get minY(): number
  • Returns number

  • get minZ(): number
  • Returns number

Methods

  • Checks if this bounding box fully contains another bounding box.

    Returns

    True if this bounding box fully contains the other, false otherwise.

    Parameters

    Returns boolean

  • Checks if this bounding box fully contains another bounding box in the 2D plane (ignores the z-axis).

    Returns

    True if this bounding box fully contains the other in 2D, false otherwise.

    Parameters

    Returns boolean

  • Checks if this bounding box fully contains a point.

    Returns

    True if this bounding box fully contains the point, false otherwise.

    Parameters

    Returns boolean

  • Returns number[]

  • Returns number[]

  • Parameters

    • orientation: "top" | "bottom" | "left" | "right" | "front" | "back"

    Returns number[]

  • Parameters

    • orientation: "top" | "bottom" | "left" | "right" | "front" | "back"
    • includeNormals: boolean = false
    • Optional translation: number

    Returns number[]

  • Returns number[]

  • Parameters

    • includeNormals: boolean = false

    Returns number[]

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Returns boolean

  • Calculates the intersection bounding box between this and another bounding box.

    Returns

    A new BoundingBox representing the intersection, or null if there is no intersection.

    Parameters

    Returns BoundingBox3D

  • Parameters

    Returns boolean

  • Returns boolean

  • Checks if this bounding box overlaps with another bounding box.

    Returns

    True if the bounding boxes overlap, false otherwise.

    Parameters

    Returns boolean

  • Parameters

    • minX: number
    • minY: number
    • minZ: number

    Returns void

  • Parameters

    • maxX: number
    • maxY: number
    • maxZ: number

    Returns void

  • Parameters

    Returns void

  • Calculates the union bounding box between this and another bounding box.

    Returns

    A new BoundingBox representing the union.

    Parameters

    Returns BoundingBox3D