Hierarchy

Constructors

Properties

Methods

Constructors

  • Protected

    Range constructor, initializes the position

    Parameters

    • x: number

      X coordinate of the position

    • y: number

      Y coordinate of the position

    Returns Range

Properties

position: ICoordinates

Range position

Methods

  • Check if the point is inside the range

    Returns

    true or false, checking if the given point is inside the current range

    Parameters

    Returns boolean

  • Check if another range intersects with the current one

    Returns

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

    Parameters

    • range: Range

      the range to check the intersection with

    Returns boolean