TimeIntervalTEqualsEpsilon Method (TimeIntervalT, Double, IEqualityComparerT) |
Determines if this time interval is equal to another time interval, using an epsilon to compare
the
Start and
Stop properties of the
two intervals. The dates are considered equal if they are within
epsilon
seconds of each other. All other properties must be identical.
Namespace:
AGI.Foundation.Time
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public bool EqualsEpsilon(
TimeInterval<T> other,
double epsilon,
IEqualityComparer<T> dataComparer
)
Public Function EqualsEpsilon (
other As TimeInterval(Of T),
epsilon As Double,
dataComparer As IEqualityComparer(Of T)
) As Boolean
public:
bool EqualsEpsilon(
TimeInterval<T>^ other,
double epsilon,
IEqualityComparer<T>^ dataComparer
)
member EqualsEpsilon :
other : TimeInterval<'T> *
epsilon : float *
dataComparer : IEqualityComparer<'T> -> bool
Parameters
- other
- Type: AGI.Foundation.TimeTimeIntervalT
The time interval to compare to this time interval. - epsilon
- Type: SystemDouble
The largest difference between the Start and Stop dates, in seconds, such that they will be considered equal. - dataComparer
- Type: System.Collections.GenericIEqualityComparerT
The object to use to compare the Data properties of the two intervals.
Return Value
Type:
Booleantrue if the
Start and
Stop dates of the intervals are equal as defined by the epsilon value and all other properties are identical.
See Also