Click or drag to resize

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
)

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: Boolean
true 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