Constructor
new Interval(low, high)
Accept two comparable values and creates new instance of interval
Predicate Interval.comparable_less(low, high) supposed to return true on these values
- Source:
Parameters:
Name | Type | Description |
---|---|---|
low |
||
high |
Members
Methods
(static) comparable_less_than(val1, val2) → {boolean}
Predicate returns true if first value less than second value
- Source:
Parameters:
Name | Type | Description |
---|---|---|
val1 |
||
val2 |
Returns:
- Type:
-
boolean
(static) comparable_max(val1, val2) → {number}
Function returns maximum between two comparable values
- Source:
Parameters:
Name | Type | Description |
---|---|---|
val1 |
||
val2 |
Returns:
- Type:
-
number
equal_to(other_interval) → {boolean}
Predicate returns true is this interval equals to other interval
- Source:
Parameters:
Name | Type | Description |
---|---|---|
other_interval |
Returns:
- Type:
-
boolean
intersect(other_interval) → {boolean}
Predicate returns true if this interval intersects other interval
- Source:
Parameters:
Name | Type | Description |
---|---|---|
other_interval |
Returns:
- Type:
-
boolean
less_than(other_interval) → {boolean}
Predicate returns true is this interval less than other interval
- Source:
Parameters:
Name | Type | Description |
---|---|---|
other_interval |
Returns:
- Type:
-
boolean
not_intersect(other_interval) → {boolean}
Predicate returns true if this interval does not intersect other interval
- Source:
Parameters:
Name | Type | Description |
---|---|---|
other_interval |
Returns:
- Type:
-
boolean