Duration.EqualsEpsilon Method |
Returns
true if this
Duration is within
epsilon seconds of the
specified
Duration. That is, in order for the
Durations to be considered equal (and for
this function to return
true), the absolute value of the difference between them, in
seconds, must be less than or equal to
epsilon.
Namespace:
AGI.Foundation.Time
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic bool EqualsEpsilon(
Duration other,
double epsilon
)
Public Function EqualsEpsilon (
other As Duration,
epsilon As Double
) As Boolean
public:
virtual bool EqualsEpsilon(
Duration other,
double epsilon
) sealed
abstract EqualsEpsilon :
other : Duration *
epsilon : float -> bool
override EqualsEpsilon :
other : Duration *
epsilon : float -> bool
Parameters
- other
- Type: AGI.Foundation.Time.Duration
The Duration to compare to this Duration. - epsilon
- Type: System.Double
The largest difference between the Durations, in seconds, such that they will be considered equal.
Return Value
Type:
Booleantrue if the dates are equal as defined by the epsilon value.
Implements
IEquatableEpsilon<T>.EqualsEpsilon(T, Double)
See Also