Class: NumericRange
Constructors
new NumericRange()
new NumericRange(
from
,count
):NumericRange
Parameters
• from: number
• count: number
Returns
Defined in
packages/utilities/src/NumericRange.ts:10
Properties
count
readonly
count:number
Defined in
packages/utilities/src/NumericRange.ts:7
from
readonly
from:number
Defined in
packages/utilities/src/NumericRange.ts:6
toInclusive
readonly
toInclusive:number
Defined in
packages/utilities/src/NumericRange.ts:8
Methods
contains()
contains(
value
):boolean
Parameters
• value: number
Returns
boolean
Defined in
packages/utilities/src/NumericRange.ts:38
equal()
equal(
other
):boolean
Parameters
• other: NumericRange
Returns
boolean
Defined in
packages/utilities/src/NumericRange.ts:34
forEach()
forEach(
action
):void
Parameters
• action
Returns
void
Defined in
packages/utilities/src/NumericRange.ts:72
intersectionWith()
intersectionWith(
range
):undefined
|NumericRange
Parameters
• range: NumericRange
Returns
undefined
| NumericRange
Defined in
packages/utilities/src/NumericRange.ts:50
intersects()
intersects(
range
):boolean
Parameters
• range: NumericRange
Returns
boolean
Defined in
packages/utilities/src/NumericRange.ts:42
intersectsOrCoinciding()
intersectsOrCoinciding(
range
):boolean
Parameters
• range: NumericRange
Returns
boolean
Defined in
packages/utilities/src/NumericRange.ts:46
isInside()
isInside(
range
):boolean
Parameters
• range: NumericRange
Returns
boolean
Defined in
packages/utilities/src/NumericRange.ts:61
toArray()
toArray():
number
[]
Returns
number
[]
Defined in
packages/utilities/src/NumericRange.ts:30
toString()
toString():
string
Returns
string
Defined in
packages/utilities/src/NumericRange.ts:78
union()
union(
range
):NumericRange
Parameters
• range: NumericRange
Returns
Defined in
packages/utilities/src/NumericRange.ts:65
values()
values():
Generator
<number
,any
,any
>
Returns
Generator
<number
, any
, any
>
Defined in
packages/utilities/src/NumericRange.ts:24
createFromInterval()
static
createFromInterval(from
,toInclusive
):NumericRange
Parameters
• from: number
• toInclusive: number
Returns
Defined in
packages/utilities/src/NumericRange.ts:20
isNumericRange()
static
isNumericRange(value
):value is NumericRange
Parameters
• value: any
Returns
value is NumericRange