Click or drag to resize

TimeIntervalTIntersect Method (TimeIntervalT)

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.1.418.0 (24.1.418.0)
Syntax
public TimeInterval<T> Intersect(
	TimeInterval<T> other
)

Parameters

other
Type: AGI.Foundation.TimeTimeIntervalT
The interval to intersect with this interval.

Return Value

Type: TimeIntervalT
The intersection of the two intervals.
Remarks
DefaultComparer 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