Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AABB

Axis-Aligned Bounding Box implementation

Hierarchy

  • AABB

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

pointLBF

pointLBF: Vector3

AABB's vertex in most left,most bottom,most far.

type

{Vector3}

pointRTN

pointRTN: Vector3

AABB's vertex in most right,most top,most near.

type

{Vector3}

Accessors

Center

Distance

  • get Distance(): number
  • Distance of this AABB

    Returns number

Height

  • get Height(): number
  • Height of this AABB

    Returns number

Width

  • get Width(): number
  • Width of this AABB

    Returns number

Methods

clear

  • clear(): void
  • Clean up this AABB with initial value.

    Returns void

expand

  • Calculate new bounding box with considering the new point is included.

    Parameters

    • newPoint: Vector3

      the point that will be considered that it should be in this bounding box.

    Returns this

Generated using TypeDoc