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.2.419.0 (24.2.419.0)
Syntax public TimeInterval<T> Intersect(
TimeInterval<T> other,
IEqualityComparer<T> dataComparer
)
Public Function Intersect (
other As TimeInterval(Of T),
dataComparer As IEqualityComparer(Of T)
) As TimeInterval(Of T)
public:
TimeInterval<T>^ Intersect(
TimeInterval<T>^ other,
IEqualityComparer<T>^ dataComparer
)
member Intersect :
other : TimeInterval<'T> *
dataComparer : IEqualityComparer<'T> -> TimeInterval<'T>
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:
TimeIntervalTThe 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