Skip to main content

PointRange

Range between two points. Creates a normalized range between two given points

Index

Properties

end

end: Point

The bottom-right point

start

start: Point

The top-left point

Methods

[iterator]

  • [iterator](): Iterator<Point, any, undefined>
  • Iterates through all the existing points in given range


    Returns Iterator<Point, any, undefined>

equals

  • Returns whether given range is equal to this range


    Parameters

    Returns boolean

has

  • has(point: Point): boolean
  • Returns whether given point exists in given range


    Parameters

    Returns boolean

mask

size

  • size(): number
  • Returns the size (rows x columns) of the given range


    Returns number