A class representing a rectangle on the screen.

Member

left The x coordinate of the top-left point.

Member

top The y coordinate of the top-left point.

Member

right The x coordinate of the bottom-right point.

Member

bottom The y coordinate of the bottom-right point.

Hierarchy

  • Rect

Constructors

Properties

Methods

Constructors

  • Parameters

    • left: number

      The x coordinate of the top-left point.

    • top: number

      The y coordinate of the top-left point.

    • right: number

      The x coordinate of the bottom-right point.

    • bottom: number

      The y coordinate of the bottom-right point.

    Returns Rect

Properties

bottom: number
left: number
right: number
top: number

Methods

Generated using TypeDoc