Click or drag to resize

TimeIntervalTIntersectMergingData Method

Computes an interval which is the intersection of this interval with another while also providing a means to merge the data of the two intervals.

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public TimeInterval<T> IntersectMergingData(
	TimeInterval<T> other,
	MergeTimeIntervalDataCallback<T> mergeCallback
)

Parameters

other
Type: AGI.Foundation.TimeTimeIntervalT
The interval to intersect with this interval.
mergeCallback
Type: AGI.Foundation.TimeMergeTimeIntervalDataCallbackT
A callback to use to 'merge' the data on the two intervals, or null. If this interval intersects with the other one, the two data instances will be merged with this callback to create the data on the resulting interval. If the callback is null, this will intersect the two intervals and return the new interval with the data from 'this' interval.

Return Value

Type: TimeIntervalT
The intersection of the two intervals, with its data representing the merge of the data in the two existing intervals.
See Also