Options
All
  • Public
  • Public/Protected
  • All
Menu

Axis-aligned bounding box.

Hierarchy

  • AABB

Index

Constructors

constructor

Accessors

center

extents

max

min

size

Methods

encapsulate

  • encapsulate(point: { x: number; y: number; z: number }): void
  • Grows the bounding box to include the point.

    Parameters

    • point: { x: number; y: number; z: number }

      The point to include.

      • x: number
      • y: number
      • z: number

    Returns void

Static from

  • from(source: { max: Float32Array; min: Float32Array }): AABB
  • Creates a new bounding box from the specified source.

    Parameters

    • source: { max: Float32Array; min: Float32Array }

      The source to create the bounding box from.

      • max: Float32Array
      • min: Float32Array

    Returns AABB

Generated using TypeDoc