Class representing a numeric range.

Implements

Constructors

Properties

Accessors

Methods

Constructors

  • Creates a new Range.

    Parameters

    • Optional start: number = 0

      The beginning boundary of the range.

    • Optional end: number = 1

      The end boundary of the range.

    Returns Range

Properties

end: number = 1

The end boundary of the range.

start: number = 0

The beginning boundary of the range.

Accessors

Methods

  • Check if the given range is contained in this range.

    Parameters

    • range: Range

      range to check

    Returns boolean

    true if the range is contained, false otherwise

  • Check if the given range is within this range (it's visible)

    Parameters

    • range: Range

      range to check

    Returns boolean