A representation of a contiguous block of tiles. A tile range is specified by its min/max tile coordinates and is inclusive of coordinates.

Constructors

  • Parameters

    • minX: number

      Minimum X.

    • maxX: number

      Maximum X.

    • minY: number

      Minimum Y.

    • maxY: number

      Maximum Y.

    Returns TileRange

Properties

maxX: number
maxY: number
minX: number
minY: number

Methods

  • Parameters

    • tileCoord: TileCoord

      Tile coordinate.

    Returns boolean

    Contains tile coordinate.

  • Parameters

    Returns boolean

    Contains.

  • Parameters

    • x: number

      Tile coordinate x.

    • y: number

      Tile coordinate y.

    Returns boolean

    Contains coordinate.

  • Parameters

    Returns boolean

    Equals.

  • Parameters

    Returns void

  • Returns number

    Height.

  • Returns Size

    Size.

  • Returns number

    Width.

  • Parameters

    Returns boolean

    Intersects.