Class BoundingBox

Hierarchy

  • BoundingBox

Implements

Constructors

Properties

h w x y

Methods

Constructors

  • Parameters

    • x: number
    • y: number
    • w: number
    • h: number

    Returns BoundingBox

Properties

h: number
w: number
x: number
y: number

Methods

  • Get height.

    Returns number

  • Get width.

    Returns number

  • Get x position.

    Returns number

  • Get y position.

    Returns number

  • Merge my box with given box. Creates a bigger bounding box unless the given box is contained in this one.

    Parameters

    Returns BoundingBox