TimeIntervalCollectionTIntersectMergingData Method (TimeIntervalT, MergeTimeIntervalDataCallbackT)
Computes the intersection of this interval collection with an interval. When the interval overlaps an interval
in the collection, a provided callback is used to merge the Data
on each into a single
value that is applied to the interval of intersection. If the mergeCallback
, intervals that overlap in time will not be included in the returned intersection collection
if they have different data.
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 22.2.414.0 (22.2.414.0)
public TimeIntervalCollection<T> IntersectMergingData(
Public Function IntersectMergingData (
interval As TimeInterval(Of T),
mergeCallback As MergeTimeIntervalDataCallback(Of T)
) As TimeIntervalCollection(Of T)
member IntersectMergingData :
interval : TimeInterval<'T> *
mergeCallback : MergeTimeIntervalDataCallback<'T> -> TimeIntervalCollection<'T>
- Type: AGI.Foundation.TimeTimeIntervalT
The interval to intersect with this collection
- Type: AGI.Foundation.TimeMergeTimeIntervalDataCallbackT
The method to use to "merge" the data on two intervals that intersect. If ,
the data from this interval will be used.
The intersection of this collection with the interval.
The returned collection will only contain the intervals that are in
both collections. If two intervals in the two collections overlap but have
, the overlapping part will NOT be included in the resulting collection.