Click or drag to resize

TimeIntervalTIntersect Method (TimeIntervalT, IEqualityComparerT)

Computes an interval which is the intersection of this interval with another.

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public TimeInterval<T> Intersect(
	TimeInterval<T> other,
	IEqualityComparer<T> dataComparer
)

Parameters

other
Type: AGI.Foundation.TimeTimeIntervalT
The interval to intersect with this interval.
dataComparer
Type: System.Collections.GenericIEqualityComparerT
The object to use to compare the Data properties of the two intervals.

Return Value

Type: TimeIntervalT
The intersection of the two intervals.
Remarks
dataComparer is used to compare the Data properties of this interval and the other interval. If the comparer reports that the Data properties are not equal, the intersection is an empty interval. If the comparer reports that the Data properties are equal, the new interval representing the intersection will have the same value for its Data property as the interval on which this method is called.
See Also