The non-normalized ranges to add.
ReadonlyrangesThe ranges array like this reader encapsulates. Ranges are [start, end] tuples, they will always be ordered, never touch, and never overlap.
Returns the range at the given value, or null if all ranges are outside the given tolerance.
Range values are considered inclusive.
That is, a ReadonlyRanges with [0, 1] will return [0, 1] for value 1.
The value to compare to current ranges.
The tolerance the value may be outside a range and still considered to be within. Default: 0
Returns the range that includes the entire from-to span, within a given tolerance.
Range values are considered inclusive.
That is, a ReadonlyRanges with [0, 2] will return [0, 2] for
getRangeContaining(2, 2) or getRangeContaining(0, 0).
from does not need to be lesser than to.
Optionaltolerance: number
A collection of Range start/end tuples. When ranges are added they are merged and sorted, making for fast within range checks.