Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BoundingBox

Implements

Index

Constructors

Properties

transform: Transform

Accessors

  • Get bottom-left point of the bounding box

    🟦🟦 🟥🟦

    Returns Vector

  • Get bottom-right point of the bounding box

    🟦🟦 🟦🟥

    Returns Vector

  • Get center point of the bounding box

    Returns Vector

  • get height(): number
  • Get width of the bounding box

    Returns number

  • get rotation(): number
  • Get rotation of the bounding box

    Returns number

  • Get size of the bounding box

    Returns Vector

  • Get top-left point of the bounding box

    🟥🟦 🟦🟦

    Returns Vector

  • Get top-right point of the bounding box

    🟦🟥 🟦🟦

    Returns Vector

  • get width(): number
  • Get width of the bounding box

    Returns number

Methods

  • Parameters

    Returns Vector

  • intersects(position: Vector): boolean
  • Parameters

    Returns boolean

  • toString(): string
  • Returns string

  • Returns BoundingBox

  • fromDomRect(domRect: { height: number; width: number; x: number; y: number }): BoundingBox
  • Parameters

    • domRect: { height: number; width: number; x: number; y: number }
      • height: number
      • width: number
      • x: number
      • y: number

    Returns BoundingBox