Class: NumericRange
@cognite/reveal.NumericRange
Constructors
constructor
• new NumericRange(from
, count
)
Parameters
Name | Type |
---|---|
from | number |
count | number |
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
Name | Type |
---|---|
value | number |
Returns
boolean
Defined in
packages/utilities/src/NumericRange.ts:38
equal
▸ equal(other
): boolean
Parameters
Name | Type |
---|---|
other | NumericRange |
Returns
boolean
Defined in
packages/utilities/src/NumericRange.ts:34
forEach
▸ forEach(action
): void
Parameters
Name | Type |
---|---|
action | (value : number ) => void |
Returns
void
Defined in
packages/utilities/src/NumericRange.ts:72
intersectionWith
▸ intersectionWith(range
): NumericRange
Parameters
Name | Type |
---|---|
range | NumericRange |
Returns
Defined in
packages/utilities/src/NumericRange.ts:50
intersects
▸ intersects(range
): boolean
Parameters
Name | Type |
---|---|
range | NumericRange |
Returns
boolean
Defined in
packages/utilities/src/NumericRange.ts:42
intersectsOrCoinciding
▸ intersectsOrCoinciding(range
): boolean
Parameters
Name | Type |
---|---|
range | NumericRange |
Returns
boolean
Defined in
packages/utilities/src/NumericRange.ts:46
isInside
▸ isInside(range
): boolean
Parameters
Name | Type |
---|---|
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
Name | Type |
---|---|
range | NumericRange |
Returns
Defined in
packages/utilities/src/NumericRange.ts:65
values
▸ values(): Generator
<number
, any
, unknown
>
Returns
Generator
<number
, any
, unknown
>
Defined in
packages/utilities/src/NumericRange.ts:24
createFromInterval
▸ Static
createFromInterval(from
, toInclusive
): NumericRange
Parameters
Name | Type |
---|---|
from | number |
toInclusive | number |
Returns
Defined in
packages/utilities/src/NumericRange.ts:20
isNumericRange
▸ Static
isNumericRange(value
): value is NumericRange
Parameters
Name | Type |
---|---|
value | any |
Returns
value is NumericRange