Class: BoundingBox

PIXI.utils.BoundingBox

A rectangular bounding box describing the boundary of an area.

new PIXI.utils.BoundingBox (left, top, right, bottom)

Name Type Description
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.

Since:
  • 7.1.0

Members

PIXI.utils.BoundingBox.EMPTY PIXI.utils.BoundingBox staticreadonly

An empty BoundingBox.

bottom number

The bottom coordinate value of the bounding box.

height number

The height of the bounding box.

left number

The left coordinate value of the bounding box.

The right coordinate value of the bounding box.

top number

The top coordinate value of the bounding box.

width number

The width of the bounding box.

Methods

isEmpty () boolean

Determines whether the BoundingBox is empty.

Returns:
Type Description
boolean