Hierarchy (view full)

Constructors

Properties

Methods

Constructors

  • The rectangle constructor, initializes position and size

    Parameters

    • x: number

      X coordinate of the position

    • y: number

      Y coordinate of the position

    • width: number

      Rectangle width

    • height: number

      Rectangle height

    Returns Rectangle

Properties

position: ICoordinates

Range position

The rectangle size

type: string

Methods

  • Check if the given point is inside the rectangle

    Parameters

    Returns boolean

    true or false, checking if the given point is inside the rectangle

  • Check if another range intersects the rectangle

    Parameters

    Returns boolean

    true or false, checking if the range is intersecting with the rectangle