Preparing search index...
The search index is not available
overlapping_intervals
overlapping_intervals
LineSweepOverlapStrategy
Class LineSweepOverlapStrategy<T>
Type Parameters
T
Hierarchy
LineSweepOverlapStrategy
Implements
SearchOverlappingIntervalsStrategy
<
T
>
Index
Constructors
constructor
Properties
compare
Ends
interval
Comparison
Strategy
sort
Fn
Methods
find
Overlaps
find
Overlaps
In
Array
Constructors
constructor
new
Line
Sweep
Overlap
Strategy
<
T
>
(
intervalComparisonStrategy
:
IntervalComparisonStrategy
<
T
>
, compareEnds
:
(
(
a
:
Interval
<
T
>
, b
:
Interval
<
T
>
)
=>
number
)
, sortFn
:
(
(
a
:
Interval
<
T
>
, b
:
Interval
<
T
>
)
=>
number
)
)
:
LineSweepOverlapStrategy
<
T
>
Type Parameters
T
Parameters
intervalComparisonStrategy:
IntervalComparisonStrategy
<
T
>
compareEnds:
(
(
a
:
Interval
<
T
>
, b
:
Interval
<
T
>
)
=>
number
)
(
a
:
Interval
<
T
>
, b
:
Interval
<
T
>
)
:
number
Parameters
a:
Interval
<
T
>
b:
Interval
<
T
>
Returns
number
sortFn:
(
(
a
:
Interval
<
T
>
, b
:
Interval
<
T
>
)
=>
number
)
(
a
:
Interval
<
T
>
, b
:
Interval
<
T
>
)
:
number
Parameters
a:
Interval
<
T
>
b:
Interval
<
T
>
Returns
number
Returns
LineSweepOverlapStrategy
<
T
>
Properties
Private
Readonly
compare
Ends
compare
Ends
:
(
(
a
:
Interval
<
T
>
, b
:
Interval
<
T
>
)
=>
number
)
Type declaration
(
a
:
Interval
<
T
>
, b
:
Interval
<
T
>
)
:
number
Parameters
a:
Interval
<
T
>
b:
Interval
<
T
>
Returns
number
Private
Readonly
interval
Comparison
Strategy
interval
Comparison
Strategy
:
IntervalComparisonStrategy
<
T
>
Private
Readonly
sort
Fn
sort
Fn
:
(
(
a
:
Interval
<
T
>
, b
:
Interval
<
T
>
)
=>
number
)
Type declaration
(
a
:
Interval
<
T
>
, b
:
Interval
<
T
>
)
:
number
Parameters
a:
Interval
<
T
>
b:
Interval
<
T
>
Returns
number
Methods
find
Overlaps
find
Overlaps
(
a
:
Interval
<
T
>
[]
, b
:
Interval
<
T
>
[]
, exclusive
:
boolean
)
:
[
Interval
<
T
>
[]
,
Interval
<
T
>
[]
,
Interval
<
T
>
[]
,
boolean
]
Returns
[overlapping times in a and were there conflicts in a | b, conflicts in A, conflicts in B, isOverlapping]
Parameters
a:
Interval
<
T
>
[]
b:
Interval
<
T
>
[]
exclusive:
boolean
Returns
[
Interval
<
T
>
[]
,
Interval
<
T
>
[]
,
Interval
<
T
>
[]
,
boolean
]
Private
find
Overlaps
In
Array
find
Overlaps
In
Array
(
a
:
Interval
<
T
>
[]
, exclusive
:
boolean
)
:
Interval
<
T
>
[]
Parameters
a:
Interval
<
T
>
[]
exclusive:
boolean
Returns
Interval
<
T
>
[]
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
overlapping_
intervals
Line
Sweep
Overlap
Strategy
constructor
compare
Ends
interval
Comparison
Strategy
sort
Fn
find
Overlaps
find
Overlaps
In
Array
Generated using
TypeDoc
Returns