A rectangular bounding box describing the boundary of an area.

Memberof

PIXI.utils

Since

7.1.0

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • left: number

      The left coordinate value of the bounding box.

    • top: number

      The top coordinate value of the bounding box.

    • right: number

      The right coordinate value of the bounding box.

    • bottom: number

      The bottom coordinate value of the bounding box.

    Returns BoundingBox

Properties

bottom: number

The bottom coordinate value of the bounding box.

left: number

The left coordinate value of the bounding box.

right: number

The right coordinate value of the bounding box.

top: number

The top coordinate value of the bounding box.

An empty BoundingBox.

Accessors

  • get height(): number
  • The height of the bounding box.

    Returns number

  • get width(): number
  • The width of the bounding box.

    Returns number

Methods

  • Determines whether the BoundingBox is empty.

    Returns boolean

Generated using TypeDoc